use grep for either of two strings

Options to look for several reg exp with grep. -i for case insensitive and -E for reg exp.

grep -iE "(jpg|gif)" your-file-with-text.txt

Comments

Leave a Reply