in reply to Re: Remove CR from file on Windows
in thread Remove CR from file on Windows
>echo Hello > winfile.txt >echo World >> winfile.txt >perl -pe "s/\r(?=\n)//" winfile.txt > unixfile.txt >debug unixfile.txt -rcx CX 0010 : -d100 l10 0AF7:0100 48 65 6C 6C 6F 20 0D 0A-57 6F 72 6C 64 20 0D 0A Hello ..W +orld .. -q
Well, they might work with a simulated unix environment in Windows (like cygwin), but that's an entirely different world.
The earlier posts in this thread not only provided the solution, they explained this problem and the workaround.
If it's one-liners you wanted,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Remove CR from file on Windows
by davidrw (Prior) on Feb 10, 2007 at 13:19 UTC | |
by ikegami (Patriarch) on Feb 10, 2007 at 18:44 UTC |