[aclug-L] Re: a dump grep question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 26 Mar 2001, Maverick wrote:
> #grep -w "111" & "PPP" testfile <-- error
> 111 ABC DEF IJK PPP <--- I want this output
grep -E '111.*PPP'
If you care about them being the beginning and end of the line...
grep -E '^111.*PPP$'
> I know that egrep support "|" (boolean or) to grep,
> but I don't know it support "&"(boolean and). Please
> help.
egrep supports extended regular expressions... see regex(7) for a
blow-your-mind technical discussion of it. Search the web for a kinder,
gentler discussion of regular expressions.
--
Carl D Cravens (raven@xxxxxxxxxxx)
You can tell the character of a man by the friends he keeps.
-Dr. Ed Cole
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|