- grep with multiple pattern:
-E, –extended-regexp: PATTERN is an extended regular expression
grep -a -E "apple|orange" file.txt
- grep the binary file
-a, –text: equivalent to –binary-files=text
grep -a "apple" file.txt
-
-i, grep without fixed casegrep -a -i "product_7" subeset_product_combined.txt