mantra2006 has asked for the wisdom of the Perl Monks concerning the following question:
perl -i.bak -ne '(tr/\r//d)' test.dat
perl -i.bak -pe '(tr/\r//d)' test.dat
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding \n (new line) and removing \r in a file
by davorg (Chancellor) on Sep 21, 2006 at 12:43 UTC | |
|
Re: Adding \n (new line) and removing \r in a file
by graff (Chancellor) on Sep 21, 2006 at 13:11 UTC | |
|
Re: Adding \n (new line) and removing \r in a file
by mantra2006 (Hermit) on Sep 21, 2006 at 13:29 UTC |