On Fri, 10 Aug 2001, Michael Wolfrom wrote:
> My question is: How can a match the ^M at the end of a dos text file
> in a regexp?
> What I am trying to do is print all the characters up until the ^M (if
> there is one).
\cM is how you can match it on a regexp. Some people also use \r.
you can do this all on the command-line:
perl -pi.bak -e '/s/\cM//g' <files>
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Alimony is like buying oats for a dead horse.
-- Arthur Baer
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]