grep 官方帮助文档 Usage: grep [OPTION]... PATTERN [FILE]... Search for PATTERN in each FILE or standard input. PATTERN is, by default, a basic regular expression (BRE). Example: grep -i 'hello world' menu.h main.c Regexp selection and interpretation: -E, -…
Grep 'OR' Operator Find all the lines in a file, that match any of the following patterns. Using GREP command : grep "pattern1\|pattern2" file.txtgrep -E "pattern1|pattern2" file.txtgrep -e pattern1 -e pattern2 file.txtegrep "patt…