I need to read a file line by line and pass the string as a variable for a script to be run in parallel.
ex:
14
43
57
is in foo.txt
if I var=$(cat foo.txt) then I can use this $var for inside a script, but how to call parallel to change this variable for each instance running the script?
script 14 & script 43 & script 57
or something?