Linux grep option, linuxgrep Option
Grep-I disable case sensitivity
Grep-v print all does not contain .. (Some entries are blocked)
Grep-l print the file name in the inclusion Mode
Grep-c prints the number of rows containing the pattern,
Grep-w: print the words in the inclusion Mode
The R Command Option of grep on linux
It has no meaning. It is used for recursion. If there is no sub-directory, it automatically ignores this parameter.
List the main options and functions of the linux grep command
Grep parameters:
1. grep-c option file: displays the number of lines in the file that contain the search content. For example, the preceding command indicates the number of lines in the file that contain the option content.
2. grep-n option flie: Lists All matched rows and adds the number of sequences of rows at the beginning.
3. grep-v option file: displays the number of lines in the file that do not contain the searched content. This is the opposite of the-c parameter.
4. gep-I option file: Lists matching rows of the searched content. The search process is case insensitive.
5. grep-l option *: lists the names of all files containing option content.
6. grep-r option: Search the current directory and all subdirectories.
7. grep-w option file: exact search, accurate search, for example, grep-w B * a.txt, is a * character.
8. grep-x option file: Completely matches the output. For example, grep-x hello a.txt only outputs a row containing the hello string, and this row only contains the hello content. Assume that there is a line "hello all" in a.txt. If you execute the preceding command, this row will not be searched.