I come across a school work which require us to compile a c file and running various parameter to execute and get the result, which I have to manually key in the parameter line one by one.
I was wondering is there any way to execute the command by writing it into a file and run it at once? Something like a makefile but for the command line and not compilation.
For example:
I have to run a program that require me to manually key in
./program 10
./program 100
./program 1000
./program 10000
./program ....
./program ....
./program .....
Is there a way I can write all of these into a file and run it at once without manually key in everything?
Thank you!