Hello,
i wanted to exclude 860 out of output, but not 1860 nor 86000
860
1790
1800
1810
1860
86000
grep -v 860 -Fx filename
result:
1790
1800
1810
1860
86000
Then i wanted to include only 860, not 1860 and 8600 or anything else
grep 860 -Fx filename
result:
860
-F, --fixed-strings
Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. (-F is
specified by POSIX.)
-x, --line-regexp
Select only those matches that exactly match the whole line. (-x is specified by POSIX.)
Bookmarks