So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.
Say the command is like this:
java test <parameters/> > <output filename/>
Is there a way to automate this for many different values of the parameters and generate many different files?
for i in seq `0 3`; do java test $i > $i.txt; done
I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.