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

[aclug-L] Re: a dump grep question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'discussion@xxxxxxxxx'" <discussion@xxxxxxxxx>
Subject: [aclug-L] Re: a dump grep question
From: Ian Cazabat <icazabat@xxxxxxxxxxxxxxx>
Date: Mon, 26 Mar 2001 14:07:47 -0600
Reply-to: discussion@xxxxxxxxx

Maverick-

If you're only using text files, try this one:
#cat testfile | grep 111 | grep PPP

Hope this helps,
Ian


-----Original Message-----
From: Maverick [mailto:mluvw47@xxxxxxxxx]
Sent: Monday, March 26, 2001 12:32 PM
To: ACLUG_DISCUSSION
Subject: [aclug-L] a dump grep question



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


-- 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]
  • [aclug-L] Re: a dump grep question, Ian Cazabat <=