you can also use hexdump's graphical version "khexdump", user interface is cool here :) Thanks. Sumit Sharma. On Tue, 28 Sep 2004 sai narasimhamurthy wrote : >Hi , >All I wanted to do was to try to find the ASCII >(Decimal) values of the characters of a(any) file in >the quickest possible way. I needed it for some >operation in the SCSI Mid level which does a >particular set of operations based on ASCII values of >the contents of a file. Its very easy to miss out the >other characters (like /n etc) in a file, when you >just vi it. >Thanks hexdump helps! >Sai > > > > >--- JHolder <trs-knwb@xxxxxxxxxxxxxx> wrote: > > > sai narasimhamurthy said: > > > Is there a Linux Command which will display the > > file > > > contents in ASCII?? > > > > > > > This is quite a vague question. It depends on what > > you are trying to do. > > If it is a file that only contains ASCII characters > > use one of the > > following commands: cat, more, less or most. Check > > the man pages. man > > cat > > > > If the file is binary, ie it contains printable and > > nonprintable > > characters try hexdump -C <filename>. That gives > > the hex values and the > > printable ascii characters are printed. > > > > If you are trying to see a file that contains some > > language which does not > > use ASCII characters (chinese for instance). The > > quickest thing to do > > would be to open it using a browser like mozilla, > > and then changing the > > encoding to match the desired characters. > > > > Good Luck, > > John > > > > -- > > Kernelnewbies: Help each other learn about the Linux > > kernel. > > Archive: > > http://mail.nl.linux.org/kernelnewbies/ > > FAQ: http://kernelnewbies.org/faq/ > > > > > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - Send 10MB messages! >http://promotions.yahoo.com/new_mail > >-- >Kernelnewbies: Help each other learn about the Linux kernel. >Archive: http://mail.nl.linux.org/kernelnewbies/ >FAQ: http://kernelnewbies.org/faq/ >