Could somebody please provide the code to do the following:
Assume there is a directory of files, all of which need to be run through a program. The program outputs the results to standard out. I need a script that will go into a directory, execute the command on each file, and concat the output into one big output file.

For instance, to run the command on 1 file:

$ cmd [option] [filename] > results.out

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *