[Solved] text file each line to command in bash [closed]


While you can achieve this with a bash script, probably the easier way is to use the xargs utility.

xargs -L 1 ./myscript.py <inputfile

The bash way would be:

while read line
do
    ./myscript $line
done <inputfile

solved text file each line to command in bash [closed]