How to remove invisible character?

Josef Lowder joe at actionline.com
Wed Apr 9 18:43:15 MST 2008


.
I have an ascii text file that seems to have hex 015 
characters embedded at the end of each line and I can't 
figure out how those seemingly invisible characters got 
there or how to remove them.  Their presence causes a 
shell script that I am trying to use on the target file 
to not work.  It works on example (a) below, but not on
example (b).  When I open these files with a text editor 
(kwrite), the contents looks identical on both (a) and (b)



$ hexdump -cb exo-20:12 (a)
0000000   E   X   O   -   2   0   :   1   2  \n
0000000 105 130 117 055 062 060 072 061 062 012
000000a

$ hexdump -cb exo-20:12 (b)
0000000   E   X   O   -   2   0   :   1   2  \r  \n
0000000 105 130 117 055 062 060 072 061 062 015 012
000000b



More information about the PLUG-discuss mailing list