I need to run a command several times, each time with a new value:
grep VALUE0 myfile.txt
grep VALUE1 myfile.txt
grep VALUE2 myfile.txt
Because the grep command is "crafted" ad hoc (not always the same) and only the list of VALUEs is always the same I don't want to put the grep-command into a loop inside a bash-file. I would prefer to maintain my list of VALUEs in a seperate file like "values.txt" and let an ad-hoc shell command loop over this list of values read from "values.txt"
Looking forward to little hints.