We have a large number of files in a directory which need to be processed by a program called process
, which takes two aguments infile and outfile.
We want to name the outfile after infile and add a suffix. E.g. for processing a single file, we would do:
process somefile123 somefile123-processed
How can we process all files at once from the command line? (This is in a bash command line)