What I\'m trying to achieve is to read command line arguments from a file and invoke a command using them. So essentially I need to pass the arguments through a bash variabl
Use command substitution, to expand the file contents to the command,
/some/command "$(
As an example,
cat file
"aaa bbb" "xxx yyy"
using printf
on it INCORRECTLY with cat
will produce
printf "%s\n" $(cat file)
"aaa
bbb"
"xxx
yyy"
With proper quoting present, arguments are sent as such without getting split.
printf "%s\n" "$(