Dear All,
I am stacked in how to do a "for" loop with two input. Well, I try to explain better.
In a folder I have a series of files that are coupled;
a_1.txt
a_2.txt
b_1.txt
b_2.txt
c_1.txt
c_2.txt
if files were independent a "for" loop should be like that:
for file in folder/*.txt
do something $file > ${file%%.*}_executed.txt
done &
wait
My problem is that my command take two file as input, for instance:
my_command a_1.txt a_2.txt > output
Well, I would like to do it in a for loop but don't know how.
Any suggestion?
PS: Thanks to MadeInGerman for ${file%%.*}