Passing List as Arguments to Command
You can do that with a while
loop which read
s the file.
Something like
while IFS= read -r arg; do
your_command "$arg"
done < "Your_file"
The <
redirection will send the content of "Your_file" to the while loop, which will read each line, and assign it's value to the $arg
variable.
#!/bin/bash
while read cmd
do
do $cmd
done < "args.txt"