Computing.Net > Forums > Unix > Hexadecimal editor

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Hexadecimal editor

Reply to Message Icon

Name: surfistadesampa
Date: January 10, 2005 at 10:04:41 Pacific
OS: Linux
CPU/Ram: Pentium III
Comment:

Hi people,,,

Does anyone know any hexadecimal editor for Unix (native and non-native) ???

I have a file that contains as last character a number, but when i visualize it with a hex editor i see a "dot" ( a0 ) as the last character ...
Anyone know how can i erase this "dot" in a command line ??

for example ... i have a file called test.

# cat test
123456

the last character is 6 ... but when i use a hex editor, it shows the following
31 32 33 34 35 36 a0

this correspond:

123456.

this s u c k s a lot ... there are a program that process this file and this program show a message error always that get files that contains this "dot" and i need process this file,, and the unique way is erase this dot that i cant see using vi editor.

thanks people




Sponsored Link
Ads by Google

Response Number 1
Name: thepubba
Date: January 10, 2005 at 11:43:04 Pacific
Reply:

That a0 is not a .

They entering this command:

#!/bin/ksh

print '\n' | od -hc

Your output will look like this:

0000000 0a0a
\n \n

What you are seeing is a new-line character. It is a line terminator.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Hexadecimal editor

COBOL for AIX editor?? www.computing.net/answers/unix/cobol-for-aix-editor/7461.html

Unix Hexadecimal www.computing.net/answers/unix/unix-hexadecimal/2886.html

editor in unix www.computing.net/answers/unix/editor-in-unix/5578.html