Query: grep
OS: minix
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GREP(1) General Commands Manual GREP(1)NAMEgrep - search a file for lines containing a given patternSYNOPSISgrep [-elnsv] pattern [file] ...OPTIONS-e -e pattern is the same as pattern -c Print a count of lines matched -i Ignore case -l Print file names, no lines -n Print line numbers -s Status only, no printed output -v Select lines that do not matchEXAMPLESgrep mouse file # Find lines in file containing mouse grep [0-9] file # Print lines containing a digitDESCRIPTIONGrep searches one or more files (by default, stdin) and selects out all the lines that match the pattern. All the regular expressions accepted by ed and mined are allowed. In addition, + can be used instead of * to mean 1 or more occurrences, ? can be used to mean 0 or 1 occurrences, and | can be used between two regular expressions to mean either one of them. Parentheses can be used for grouping. If a match is found, exit status 0 is returned. If no match is found, exit status 1 is returned. If an error is detected, exit status 2 is returned.SEE ALSOcgrep(1), fgrep(1), sed(1), awk(9). GREP(1)
Related Man Pages |
---|
bzfgrep(1) - linux |
bzgrep(1) - linux |
grep(1) - plan9 |
plan9-grep(1) - debian |
grep(1) - minix |
Similar Topics in the Unix Linux Community |
---|
dynamic match thru awk |
Swapping or switching 2 lines using sed |
Print rows, having pattern in specific column... |
Grep a new line? |
sed Or Grep Problem OR Terminal Problem? |