Web Server Administration: grep
grep
To find all lines that contain the word "nobody" in /etc/passwd:
$ grep nobody /etc/passwd
This will match nobody, Nobody, NoBody, etc...
$ grep -i nobody /etc/passwd
"grep -i" will do a case-insensitive search
The grep command is used to find strings
This will match all lines that don't contain "nobody"
$ grep -v nobody /etc/passwd
"grep -v string" will find all lines that don't contain string