Vi substitution question?
John Chambers
jc at trillian.mit.edu
Tue Apr 4 16:28:47 EDT 2000
As a last resort you can always lose those annoying
CR characters by filtering the file with tr, thus:
tr -d "\015"
And a perl hacker would probably do it this way:
perl -e 's/\r//g'
There are lots of tools around that will do the job, if
what you want to do is copy the file. With perl, you could
also edit a list of files "in place" via something like:
perl -pi.bak -e 's/\r//g' files...
There's a very similar awk incantation that would work, but
since I haven't used awk in years, I won't attempt it.
(But I still haven't seen how you do it in emacs. Hey, all
you emacs hackers; stop lurking! ;-)
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list