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

Re: regexp help



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. 

	You would want the sed substitution: s/[\015\000]//g
\015 corresponding to ^M, and \000 corresponding to ^@.

Simon


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: