I want to search a file with either this string foo or this string bar. This is what I've attempted so far:
cat filename.csv | grep foo\|bar
You can specify multiple patterns with multiple -e flags:
grep -e foo -e bar filename.csv
This is a POSIX standard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With