DO NOT be tempted to redirected back to the original file as you will truncate it.
Better yet, use Perl's in place file editing feature:
perl -p -i -e 's/\r$//' (filename)
Plus, if you use
-i.fooa backup copy of filename before the changes will be stored in "filename.foo"
Peace,
-McD
In reply to Re: Re: Removing Control Characters
by McD
in thread Removing Control Characters
by raj8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |