I would like to use sed instead of grep because of set -e
presence in my shell script.
I am using grep -v -f -F to filter some patterns from a file file1.txt like,
grep -v -f -F file.txt data.txt > filtereddata.txt
This will filter the data which is not matching the pattern in file.txt.
I need to do this using sed. I was able to find invert match using '//p!'
in sed but could not find combination of -f with '//p!'
.
Is above grep command possible using sed with equivalent or better performance?