CGREP.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- CGREP(1) Minix Programmer's Manual CGREP(1)
- NAME
- cgrep - grep and display context
- SYNOPSIS
- cgrep [-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)
- EXAMPLES
- cgrep -w 3 hello file1
- # Print 3 lines of context each way
- DESCRIPTION
- Cgrep 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 ALSO
- grep(1), fgrep(1).
- 1