Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Как работает xxd.
  2. По началу есть файлик test_file.txt , его содержимое:
  3.  
  4. 01 00 00 00 02 00 00 00
  5. 03 00 00 00 00 00 00 00
  6. 02 00 00 00 01 00 00 00
  7.  
  8.  
  9.  
  10. qua@quapc:~/Desktop$ cat test_file.txt
  11. 01 00 00 00 02 00 00 00
  12. 03 00 00 00 00 00 00 00
  13. 02 00 00 00 01 00 00 00
  14. qua@quapc:~/Desktop$ xxd -r -p test_file.txt test_file_a.bin
  15. qua@quapc:~/Desktop$ cat test_file_a.bin
  16. 
  17. qua@quapc:~/Desktop$ xxd -p test_file_a.bin test_file_b.txt
  18. qua@quapc:~/Desktop$ cat test_file_b.txt
  19. 010000000200000003000000000000000200000001000000
  20. qua@quapc:~/Desktop$ xxd -r -p test_file_b.txt test_file_c.bin
  21. qua@quapc:~/Desktop$ cat test_file_c.bin
  22. 
  23. qua@quapc:~/Deskxxd -p test_file_c.bin test_file_d.txt
  24. qua@quapc:~/Desktop$ cat test_file_d.txt
  25. 010000000200000003000000000000000200000001000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement