On Mon, 2003-02-10 at 05:09, Cedric Veilleux wrote: > Hi, > > What is the correct regular expression for a simple $ character? I want to > filter a file for any lines containing a $ char, but it does not work.. > > man grep tells me $ is a special regular expression char.. I try to escape it > using \$ but it doesn't work..
Oddly a double backslash (\\) escape works, with or without quotes, but don't ask me why! grep "\\$" afile -- Mike Williams <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
