The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
57 views

Understanding `od -c` output

I've got a text file that I'm trying to debug an encoding issue in. I ran the file through od -c and got the following output: 3457540 , " t e x t " : " 302 241 Q u 303 251 ...
2
votes
1answer
25 views

understanding od -a option

In Linux, the --type a option in od is explained as --type=       Select the format in which to output the file data … a      named ...
0
votes
1answer
51 views

Why is od calculating decimal values wrong?

This question is related to the answer from enzotib to the question: How could I use Bash to find 2 bytes in a binary file, increase their values, and replace? This converts the two bytes into its ...
4
votes
1answer
134 views

od emulation for directories

I was wondering why od(1) used to work in UNIX but doesn't work in GNU/Linux. There is a nice answer on serverfault. The next question is, are you aware of any tools that can emulate od behavior to ...
1
vote
1answer
365 views

How to change the default line length for od and hexdump

Is there any way to change the default line length for the od and hexdump commands? Can't see anything apropriate in the man pages.
3
votes
2answers
3k views

How to interpret an octal or hex dump of a binary file?

The binary file has strings and some numbers, If I do od -c filename or strings filename, I can see the strings properly. But, what about numbers? They are in some weird format. The text after doing ...
5
votes
1answer
393 views

Can hd and od replace each other?

hd and od are both dump viewers of binary content. Can hd be used wherever od is and vice versa?
18
votes
2answers
5k views

Output from ls has newlines but displays on a single line. Why?

I think I may be overlooking a relatively fundamental point regarding shell. Output from the ls command by default separates output with newlines, but the shell displays the output on a single line. ...
4
votes
6answers
3k views

get numeric ASCII value for a character

I'm trying to write a shell script which asks for an ASCII character in the range A-Z or a-z and returns its equivalent numerical value. For example, the output might look like the following: ...
3
votes
2answers
422 views

How is the octal 2-byte output calculated from od

I'm struggling to work out what the octal 2-byte output from the od command is. I understand the octal output (-b flag) but the octal 2-byte is a mystery to me (-o) Can someone shed some light on how ...