I'm writing a bash program called "run" that is invoked as follows:
./run file program
"run" runs "program" using the content of "file", which are the command line arguments for "program".
For example, if program is a function "add_two_num" and "file" contains one line: x y, then "run" will run
./add_two_num x y
and store the output to another file.
I don't know how to use the content in "file", any help is appreciated! :)
Aucun commentaire:
Enregistrer un commentaire