--word-regexp force PATTERN to match only whole words -x, --line-regexp force PATTERN to match only whole lines -z, --null-data a data line ends in 0 byte, not newline Miscellaneous: -s, --no-messages suppress error messages -v, --invert-match select non-matching lines -V, --...
-i, --ignore-case ignore case distinctions -w, --word-regexp force PATTERN to match only whole words -x, --line-regexp force PATTERN to match only whole lines -z, --null-data a data line ends in 0 byte, not newline Miscellaneous: -s, --no-messages suppress error messages -v, ...
--only-matching show only the part of a line matching PATTERN-q,--quiet, --silent suppress all normal output--binary-files=TYPE assume that binary files are TYPE;TYPEis'binary','text',or
-w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must ...
--word-regexp force PATTERN to match only whole words-x, --line-regexp force PATTERN to match only whole lines-z, --null-data a data line ends in 0 byte, not newlineMiscellaneous: // 各种各样的-s, --no-messages suppress error messages-v, --invert-match select non-matching lines ...
--regexp=PATTERN use PATTERN for matching-f,--file=FILE obtain PATTERN from FILE-i,--ignore-case ignore case distinctions-w,--word-regexp force PATTERN to match only whole words-x,--line-regexp force PATTERN to match only whole lines-z,--null-data a data line ends in 0 byte, not...
Word-constituent characters are letters, digits, and the underscore. This option has no effect if -x is also specified. -x, --line-regexp Select only those matches that exactly match the whole line. For a regular expression pattern, this is like parenthesizing the pattern and then ...
--regexp=PATTERN use PATTERNformatching-f, --file=FILE obtain PATTERN from FILE-i, --ignore-caseignorecasedistinctions-w, --word-regexp force PATTERN to match only whole words-x, --line-regexp force PATTERN to match only whole lines-z, --null-data a data line endsin0byte, not newli...
-w, --word-regexp force PATTERN to match only whole words -i, --ignore-case ignore case distinctions 2,搜索不以".o"结尾的文件名 find . -type f ! -name "*.o" find . -regextype posix-extended -regex ".*\.[^o]\>" 3,搜索不以".o"或".a"结尾的文件名 ...
--files-with-matches print only names of FILEs containing matches -c, --count print only a count of matching lines per FILE -T, --initial-tab make tabs line up (if needed) -Z, --null print 0 byte after FILE name Context control: -B, --before-context=NUM print NUM lines of leadi...