grep regex file
-i ignore case -l just list the files that have lines that match -v prints the lines that do not match the search string
grep '^[ ]*$' file1 # prints all the lines that are, or look blank
# (that's a space and a tab inside the square
# brackets).
grep -i unix file1 # prints all the lines in file1 that have the
# word unix, in any case word (i.e. unix or
# UNIX or uNIx, ...).
grep -l -v unix * # prints the names of the files in the current
# directory that do not have the word
# unix in them.
cut -f2,4 -d: /etc/passwd | grep -i cmu
grep -i cmu /etc/passwd | cut -f2,4 -d:
grep '^[ ]*$' file1 | wc -l # (that's a space and a tab inside the square
# brackets).