#1  
Old 18th July 2012, 05:27
praveenvikram24r praveenvikram24r is offline
Junior Member
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default grep command

hi,

how to check with grep command with multiple options any link or any videos is there to check with examples excluding man pages

Thanks&Regards,

R.PRAVEEN
Reply With Quote
Sponsored Links
  #2  
Old 2nd August 2012, 13:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Code:
egrep '(string1|string2)' <somefile>
This will search for lines with "string1" and "string2" in a file.
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail hold in Q fisherofer Installation/Configuration 1 5th February 2012 14:29
Can't receive mails baicunko Server Operation 12 3rd August 2011 23:02
Postfix queue problem? murunix Server Operation 7 2nd May 2011 02:55
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12
help on /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl zimele General 13 23rd August 2006 17:06


All times are GMT +2. The time now is 12:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.