Next Trivial Utilities 74

pgrep Usage

        pgrep pattern files...
        pgrep -I pattern     # List of files is on STDIN
        pgrep -u ...           # Unbuffered output
            -e pattern   specify pattern
            -h           omit filenames
            -i           case-insensitive match
            -l           print filenames only
            -q           print nothing
            -v           invert matching        
        grep ... | wc -l
        grep ... | cat -n


Next Menu Copyright © 2012 M. J. Dominus