On Thu, Jul 25, 2002 at 12:16:27PM -0700, Jeff wrote: | I know there are regexp guru's here, so I figured I'd ask for help | with at search & replace I need to do. A number of text files I have | are loaded with ^M and ^@ characters that I can't find the right | regexp to find them in order to get rid of them. I tried a bunch of | things both direct and using special characters, but I can't get it | right. To remove CRs from text files, you can use tools like 'dos2unix'. If you want to use an editor like vim, :%s/^M// (where ^M is a literal CR character entered by pressing Ctrl-V then Ctrl-M) If the file is a true DOS text file (that is, if _all_ lines end in CRLF), then simply tell vim you want to make it unix -- :set ff=unix :write -D -- In my Father's house are many rooms; if it were not so, I would have told you. I am going there to prepare a place for you. And if I go and prepare a place for you, I will come and take you to be with me that you also may be where I am. John 14:2-3 http://dman.ddts.net/~dman/
Attachment:
pgpICmPGceHox.pgp
Description: PGP signature