Josef Lowder wrote: > . > 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 > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > Use dos2unix. The \r\n end-of-line is DOS style. The dos2unix command will strip the \r out. --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss