grep options Flashcards
1
Q
grep -i
A
ignore case. do not distinguish between upper and lower
2
Q
grep -v
A
invert match, grep prints the lines that do not match the pattern
3
Q
grep -c
A
print the number of matches
4
Q
grep -l
A
print the name of each file, instead of printing each line
5
Q
grep -L
A
prints the name of each file that DOESN’T contain the pattern
6
Q
grep -n
A
prefix each matching line wth the number of the line
7
Q
grep -h
A
for multi-file searches, suppress output of filenames