Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vi substitution question?



	 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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org