cancel
Showing results for 
Search instead for 
Did you mean: 

OD Command.

David_854
Frequent Advisor

OD Command.

How can we convert the input from a file to text using the od command.
1 REPLY
Hein van den Heuvel
Honored Contributor

Re: OD Command.

Your question is not entirely clear to me. Please clarify. What is in the file? Binary numbers? What makes it non-text now? is it ascii text characters with control? What should the output look like? What should happen to unprintable / control characters?

Perhaps you are simply looking for the -a modifier?
For example:

# cat > x
aap noot mies
# od -a x
0000000 a a p sp n o o t sp m i e s nl
0000016



hth,
Hein.