How can I have some of the options to a unix command come from a file? That is the file does not contain all the options -- other options are specified elsewhere.
For example I have the file
lsoptions.txt with the following content:
Now I would like to execute
ls -a <and all options specified in the file lsoptons.txt>
ie, I want to execute
ls -a -F -G.
That is, specify some of the options, but other options are read from a file.
- This is obviously a cooked up example. My real use case is that my shell script needs some parameters that were provided in a
TeXfile. So, instead of having the user duplicate the information in multiple places, I will have the
TeXwrite the desired options into a file so that the shell script can also have access to them. One option would be to have the
TeXgenerate the entire script, but would much easier if I could just read the options from a file.