SYNTAX
The syntax for the grep command is:
grep [options] pattern [files]
OPTIONS
| Option | Description | 
|---|---|
| -b | Display the block number at the beginning of each line. | 
| -c | Display the number of matched lines. | 
| -h | Display the matched lines, but do not display the filenames. | 
| -i | Ignore case sensitivity. | 
| -l | Display the filenames, but do not display the matched lines. | 
| -n | Display the matched lines and their line numbers. | 
| -s | Silent mode. | 
| -v | Display all lines that do NOT match. | 
| -w | Match whole word. | 
 
No comments:
Post a Comment