|
|
1.1 ! root 1: .th GREP I 3/3/73 ! 2: .sh NAME ! 3: grep \*- search a file for a pattern ! 4: .sh SYNOPSIS ! 5: .bd grep ! 6: [ ! 7: .bd \*-v ! 8: ] [ ! 9: .bd \*-l ! 10: ] [ ! 11: .bd \*-n ! 12: ] expression [input] [output] ! 13: .sh DESCRIPTION ! 14: .it Grep ! 15: will search the input file ! 16: (standard input default) ! 17: for each line containing the ! 18: regular expression. ! 19: Normally, each line found ! 20: is printed on the output file ! 21: (standard output default). ! 22: If the ! 23: .bd \*-v ! 24: flag is used, ! 25: all lines but those matching ! 26: are printed. ! 27: If the ! 28: .bd \*-l ! 29: flag is used, ! 30: each line printed is ! 31: preceded by its line number. ! 32: If the ! 33: .bd \*-n ! 34: flag is used, ! 35: no lines are printed, ! 36: but the number of lines that would ! 37: normally have been printed is reported. ! 38: If interrupt is hit, ! 39: the number of lines ! 40: searched is printed. ! 41: .s3 ! 42: For a complete description ! 43: of the regular expression, ! 44: see ed(I). ! 45: Care should be taken when ! 46: using the characters ! 47: $ * [ ^ | ( ) and \\ in the regular ! 48: expression as they are ! 49: also meaningful to the shell. ! 50: (Precede them by \\) ! 51: .sh "SEE ALSO" ! 52: ed(I), sh(I) ! 53: .sh BUGS ! 54: Lines ! 55: are limited to 512 characters; ! 56: longer lines are truncated.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.