Thanks, John.  The "tr" command seems to have worked.  I don't have perl
installed yet.

Jon


<snip>
However, if you want to remove all 0x0D characters, even
those in the middle of a line, you can:

tr -d '\015' <input.file >output.file.without.x0d

If you have Perl installed, then this will do what I think you want:

perl -n -i.bak -e 's/\015$//;print' input.file

At the end of this program, input.file will have trailing 0x0d (015
octal) characters removed. The original file will be "input.file.bak".
If you don't want a "backup" file, then:

perl -n -i -e 's/\015$//;print' input.file

will work.
</snip>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to