![]() When it finds a match, it prints the line with the result. The text search pattern is called a regular expression. Grep is a Linux / Unix command-line tool used to search for a string of characters in a specified file. Another option to grep two strings: grep 'word1\|word2' input.Finally, try on older Unix shells/oses: grep -e pattern1 -e pattern2 *.Next use extended regular expressions: egrep 'pattern1|pattern2' *. ![]()
0 Comments
Leave a Reply. |