Annotation of coherent/a/usr/man/COHERENT/grep, revision 1.1

1.1     ! root        1: 
        !             2: 
        !             3: grep                         Command                         grep
        !             4: 
        !             5: 
        !             6: 
        !             7: 
        !             8: Pattern search
        !             9: 
        !            10: ggrreepp [ooppttiioonn ...] [_p_a_t_t_e_r_n] [_f_i_l_e ...]
        !            11: 
        !            12: grep searches each file for occurrences of the pattern (sometimes
        !            13: called  a regular  expression).  If  no  file is  specified, grep
        !            14: searches the  standard input.  The  pattern is given  in the same
        !            15: manner as  to ed.  Normally,  grep prints each  line matching the
        !            16: pattern.
        !            17: 
        !            18: The following options are available.
        !            19: 
        !            20: -bb  With  each output line,  print the block number  in which the
        !            21:     line started (used to search file systems).
        !            22: 
        !            23: -cc  Print the count of matching lines rather than the lines.
        !            24: 
        !            25: -ee  The  next argument is  pattern (useful if  the pattern starts
        !            26:     with `-').
        !            27: 
        !            28: -ff  The  next argument  is a file  containing a list  of patterns
        !            29:     separated by newlines; there is no pattern argument.
        !            30: 
        !            31: -hh  When more than one  file is specified, output lines are norm-
        !            32:     ally accompanied by the file name; -h suppresses this.
        !            33: 
        !            34: -ll  Print the name  of each file containing matching lines rather
        !            35:     than the lines.
        !            36: 
        !            37: -nn  The line number in the file accompanies each line printed.
        !            38: 
        !            39: -ss  Suppress all output, just return status.
        !            40: 
        !            41: -vv  Print a line if the pattern is not found in the line.
        !            42: 
        !            43: -xx  Print the line only if it is exactly the same as the pattern;
        !            44:     treat wildcards in the pattern as plain text.
        !            45: 
        !            46: -yy  Lower-case letters in the pattern match lower-case and upper-
        !            47:     case letters on the input lines.
        !            48: 
        !            49: ***** See Also *****
        !            50: 
        !            51: awk, commands, ed, egrep, expr, lex, sed
        !            52: 
        !            53: ***** Diagnostics *****
        !            54: 
        !            55: grep  returns an  exit status  of  zero for  success, one  for no
        !            56: matches, two for error.
        !            57: 
        !            58: ***** Notes *****
        !            59: 
        !            60: egrep is an extended and faster version of grep.
        !            61: 
        !            62: 
        !            63: 
        !            64: COHERENT Lexicon                                           Page 1
        !            65: 
        !            66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.