Assume that I have two sets of files foo_A_uid.bar and 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_A_i.bar and foo_B_i.bar for some fixed i.
My question is how can I batch this process? Some python, bash script?
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.
.pngin my case. – Dror Jan 19 at 15:35