- or download this
cat file1 | perl -e 'while(<>){ next if !/IMO/; print $_;}'
- or download this
cat file1 | perl -e 'while(<>){ next if !/\bIMO/; print $_;}'
- or download this
cat file1 | perl -e 'while(<>){ next if !/\bIMO/i; print $_;}'
- or download this
vi file2
apple
...
banana
grep -f file2 file1