Complete.Org: Mailing Lists: Archives: discussion: March 2001:
[aclug-L] a dump grep question
Home

[aclug-L] a dump grep question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG_DISCUSSION <discussion@xxxxxxxxx>
Subject: [aclug-L] a dump grep question
From: Maverick <mluvw47@xxxxxxxxx>
Date: Mon, 26 Mar 2001 10:32:03 -0800 (PST)
Reply-to: discussion@xxxxxxxxx

Hi, all
  I have file testfile, and I want to get the exactly
occurance on the same line.
//testfile
111 ABC DEF IJK PPP
111 XTS XXX XXX XXX
222 MNO PRQ STU PPP
333 ... ... ... 111 
444 ... ... ... PPP

I only interest in grep the line contain
111 and PPP. 
I don't know it is possible using grep or egrep to do
it?

#grep -w "111" & "PPP" testfile <-- error 
111 ABC DEF IJK PPP <--- I want this output           


I know that egrep support "|" (boolean or) to grep,
but I don't know it support "&"(boolean and). Please
help.
Thanks.

Regards,
Mav










 I don't know I can do 

=====
~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~~:~:~:~:~:~:~

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]