Quote:
Originally Posted by JayC89
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.
|
See what this command results in:
Code:
[ysawant@sms104a smsc]$ grep -i *whatever your searching for *
grep: your: No such file or directory
grep: searching: No such file or directory
grep: for: No such file or directory
[ysawant@sms104a smsc]$
This command should be:
Code:
grep -i "*whatever your searching for" *