Assume that I have two sets of files
foo_B_uid.bar. Each set contains (a known) number of files. Now, I want to process corresponding pairs using some tool (
ImageMagick in my case), that is I want to run
some_command foo_A_i.bar foo_B_i.bar out_i.bar, where
out_i.bar is the result/output when running the tool on the pair
foo_B_i.bar for some fixed
My question is how can I batch this process? Some
Clarification: By set of files I mean a list of files, all start with the same initial, then some UID and having the same extension. This hold for both input sets and the output.