in reply to RE: Remove the ^M Character from a Document
in thread Remove the ^M Character from a Document
orperl -pi.orig -e 's#\r\n#\n#g' filespec
Though ideally, this is more correct:perl -pi.orig -e 's,\r\n,\n,g' filespec
perl -pi.orig -e 's,\cM,,g' filespec # commas for clarity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove the ^M Character from a Document
by Abigail-II (Bishop) on Jun 03, 2002 at 16:18 UTC | |
by Sifmole (Chaplain) on Jun 03, 2002 at 18:01 UTC | |
by Abigail-II (Bishop) on Jun 03, 2002 at 18:21 UTC | |
by hacker (Priest) on Jun 04, 2002 at 12:55 UTC | |
by Abigail-II (Bishop) on Jun 04, 2002 at 13:09 UTC | |
by Sifmole (Chaplain) on Jun 03, 2002 at 18:37 UTC |