I am on sun solaris 5.8
I have a script gen_file.ksh that takes in 5 parameters... Like
gen_file.ksh param1 param2 param3 param4 param5
Is it possible for me to read another file, say param5_list.txt and read each line from that file
and run the above script that many times(as the number of lines found in the param5_list.txt)
In other words, if my param_list.txt has 3 different param5 values in 3 different lines like
123
456
789
I needed my script to run 3 times
gen_file.ksh param1 param2 param3 param4 123
gen_file.ksh param1 param2 param3 param4 456
gen_file.ksh param1 param2 param3 param4 789
Any pointers on how this can be done would be great. Thanks