I wrote a program in Fortran that asks me for latitude and longitude and the name of the output file every time I run it. It works great. What I have been meaning to do is run this program for the entire globe (i.e. 65341 total different possible combination). I am having a hard time doing this with shell scripting. Can any one give me some pointers? So far I have been messing around with an input file, but the program reads the first three entries of the input file (lat, lon, and the filename) and stops. What would be excellent is if I could write a source script that goes something like the following:$ ./myprogram < lat1, lon1, filename1$ ./myprogram < lat2, lon2, filename2However, the sign < only feeds in the input file. Is there a similar way to feed in input values instead of input file?
Read Multiple Entries from an Input File
bash;shell;shell script;echo