Hi,
I have a shell script that has to taken inputs from a file say "Inputs". Now I take 2 inputs at a time. Suppose the Inputs file contains numbers like
2
3
4
5
Now I have a written a script for adding 2 numbers. When I run the script for first time 2 and 3 must be the inputs. When i run the script for the second time the inputs should be 4 and 5. Is there is any way to do this. I know that the inputs can be taken using 'exec'. But , how can i do for this case.