Tii has asked for the wisdom of the Perl Monks concerning the following question:
Please forgive me for asking a redundant question, but before posting this, I searched for the answer to no avail:
How can I replace the ^M found in a file (usually after it has been ftp'ed in binary format instead of ascii)?
Even better, is there a way to delete the lines that contain only ^M?
Thanks,
Tii
PS: I remember that this question was asked before and the answer was something that could be done on the command line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to remove ^M from a file
by Russ (Deacon) on Aug 01, 2000 at 20:46 UTC | |
|
RE: How to remove ^M from a file
by DrManhattan (Chaplain) on Aug 01, 2000 at 21:53 UTC | |
|
RE: How to remove ^M from a file (dos2unix)
by ybiC (Prior) on Aug 01, 2000 at 22:17 UTC | |
|
Re: How to remove ^M from a file
by Tii (Monk) on Aug 01, 2000 at 22:40 UTC | |
|
Re: How to remove ^M from a file
by Buckaroo Buddha (Scribe) on Aug 02, 2000 at 19:26 UTC |