[aclug-L] a dump grep question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [aclug-L] a dump grep question,
Maverick <=
|
|