When using grep with the -f option, does the grep get executed as many times as there are patterns in the -f pattern.txt ? Is
grep -f pattern.txt myfile.txt
faster than
grep -e "one" -e "two" -e "three" myfile.txt
if pattern.txt contains
one
two
three
?
Aucun commentaire:
Enregistrer un commentaire