Query: cgrep
OS: minix
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CGREP(1) General Commands Manual CGREP(1)NAMEcgrep - grep and display contextSYNOPSIScgrep [-a n] [-b n] [-f] [-l n] [-n] [-w n] pattern [file] ...OPTIONS-a How many lines to display after the matching line -b How many lines to display before the matching line -f Suppress file name in the output -l Lines are truncated to this length before comparison -n Suppress line numbers in the output -w Sets window size (same as -a n -b n)EXAMPLEScgrep -w 3 hello file1 # Print 3 lines of context each wayDESCRIPTIONCgrep is a program like grep, except that it also can print a few lines above and/or below the matching lines. It also prints the line numbers of the output.SEE ALSOgrep(1), fgrep(1). CGREP(1)
Related Man Pages |
---|
egrep(1) - bsd |
fgrep(1) - sunos |
egrep(1) - ultrix |
zfgrep(1) - netbsd |
zgrep(1) - netbsd |