grep -vi tutorial* .c what is this command used for in unix
Answers
Answered by
1
Answer:
The -c option tells grep to supress the printing of matching lines, and only display the number of lines that match the query. For instance, the following will print the number 4, because there are 4 occurences of "boo" in a_file. An option more useful for searching through non-code files is -i, ignore case.
Explanation:
Grep is a Linux / Unix command-line tool used to search for a string of characters in a specified file. The text search pattern is called a regular expression. When it finds a match, it prints the line with the result. The grep command is handy when searching through large log files
Similar questions