Something like this might be what you're looking for:
perl -pi.bak -e 's/[\n\r]+//g' myfile
This will strip all the carriage returns and linefeeds and then overwrite the original file. A backup file will be created with a .bak extension, just in case.
-- Mike
--
just,my${.02}
In reply to Re: Strip line feeds from file
by thelenm
in thread Strip line feeds from file
by mikevanhoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |