Unix Question

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

On my assignment today, I have the question:

Quote: List below the representations for all "unprintable" characters found in "odfile".

Since we talked about octal dump today I am assuming I would use od, but I don't know what else to do.

This is what I see when I od the file with -c option

Quote:
0000000 T h e r e w a s a s t u d
0000020 e n t f r o m C l a r k \a \n
0000040 W h o \t t h o u g h t \t s c h o
0000060 o l a g r e a t l a r k \a
0000100 \a \n H e s a i d w i t h a
0000120 g r i n \a a s h e f a i
0000140 l e d a g a i n . . . \a \n
0000157

Are unprintable characters the ones with backslashes?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

ASCII chars 0-31 (or 0o37) are usually called unprintable characters. There's no graphical representation for them, so generally escape sequences are used to display their occurrence.

Smiling

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Quote: ASCII chars 0-31 (or 0o37) are usually called unprintable characters. There's no graphical representation for them, so generally escape sequences are used to display their occurrence.

Ah, ok. Thanks for the help.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.