Without passing any option, Note that single or double quotes are required around the text if it is more than one word. You can also use the
wildcard (*) to select all files in a directory. The result of this is the occurences of the pattern (by the line it is found) in the file(s). If there is no match, no output will be printed to the terminal. For example, say we have the following files (called grep.txt): The following
The result for this is:
But Options used with grep1. |