13

Reading arguments for a shell script from file

view full story
linux-howto

http://www.unix.com – I have a shell script that takes 2 arguments. I will have to execute this script multiple times with different values for the arguments. for example, Code: ./shscript env1 value1 ./shscript env1 value2 ./shscript env2 value3 ./shscript env3 value4 ./shscript env1 value5 ./shscript env3 value6 ./shscript env2 value7 . . ./shscript env2 valuen I want to put the above in a master shell and i want to put the arguments in another file. I would like my shell to read the arguments from the file IN ORDER and then execute the ./shscript. It is important that the arguments are read in order. (HowTos)