regisr wrote:
On Sun, 08 May 2005 14:20:19 -0500 "Fafa Hafiz Krantz" <[EMAIL PROTECTED]> wrote:
I am wondering what is needed (what tool or what code) to do a mass (recursive) removal of ^Ms?
try: tr -d "\r" < input-file > output-file
Or: perl -pi -e 's/\015//' *.c
which will edit all .c files in place, or:
perl -pi.bak -e's/\015//' *.c
Which will also edit the files in place but leave the originial files with a .bak extension. Just a little easier to do on a whole directory of files than using tr.
OK, Matt _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
