What is Linux grep Command?
-A | Print num lines of text that occur after the matching line. |
-a | Don't suppress output lines with binary data, treat as text. |
-b | Print the byte offset of input file before each line of output. |
-c | Print's the count of line matched. |
-d action | Define action for accessing the directories read read all files in the directories. skip skip directories. recurse recursively read all files and directories |
-e pattern | Search for pattern. |
-h | Print matched lines but not filenames. |
-i | Ignore changes in case; consider upper- and lower-case letters equivalent. |
-n | Print line and line number. |
-q | Prints in quite mode, prints nothing. |
-r | Recursively read all files in directories and in subdirectories found. |
-v | Prints all the lines that do not match. |
-V | Print Version. |
-w | Match on whole word only. |
You can also use Patterns for search operation. | |
. | Matches single character. |
* | Wild Character. |
^ | Starting with. |
$ | Ending with. |
hscripts has many valuable free scripts It is the parent site of www.forums.hscripts.com hscripts include free tutorials and free gif images Purchase scripts from us A webmaster/web master resource website |