restore characters in "cat"
Hi,
How can I reset the cat command to restore the normal characters of a binary file? Thanks for your help. |
Just type in
Code:
reset |
Quote:
$ reset doesn't work |
What do you mean by restore normal characters of a binary file?
Since a binary file contains non printable characters when you run cat xxx.bin you will see garbage which can mess up the terminal. Executing reset should return things back to normal. |
Quote:
|
Sure, I typically use hexedit but there are many more.
http://en.wikipedia.org/wiki/Comparison_of_hex_editors |
At the console, I like bpe (binary patch editor), for looking at binary files.
|
Code:
[schneidz@hyper perceptionists-black-dialogue]$ strings "01 - Let's Move.mp3" | head -n 20 && strings "01 - Let's Move.mp3" | tail |
reset depends on the terminal type. If it doesn't work, you can always try "stty sane" which doesn't.
|
All times are GMT -5. The time now is 01:43 PM. |