Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
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.