The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: grep command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-02-2007
JayC89 JayC89 is offline
Registered User
 

Join Date: Oct 2007
Posts: 38
Grep is basically a search command.

It has many different uses, below are the ones I'm aware of;

Code:
grep -i *whatever your searching for *
This will search all files in the directory you are currently in for "whatever your searching for" Making sure the * are kept in place.

Code:
/usr/ucb/ps -auxwwww | grep *whatever*
Searches for processes running as the user you are logged on as with "whatever" in there file name\config. This can also be piped through another grep to refine the search more so.
Reply With Quote