First page Back Continue Last page Graphics
Regular Expression Examples
Count the number of "robert"s or "Robert"s (or any case combination) in the password file:
grep –ic robert /etc/passwd
List all lines with "Robert" in all files with "name" as part of the file name, showing the line numbers of the matches in front of each matching line:
grep -n "Robert" *name*