Untill now I used everytime to filter, grep
command
[root@host tests]# cat e
1
2
3
4
5
[root@host tests]# cat e | grep -Ev '2|3' > filtered.txt
[root@host tests]# cat filtered.txt
1
4
5
[root@host tests]#
But right now I have a large file that needs to be filtered with hundred of strings from another file. How can I do it?
grep -f another_file large_file
maybe? – choroba Aug 12 '19 at 18:46