I am trying to call two diff files types in a loop.
I have a1.in-a10.in files and b1.out-b10.out files. I wanna access both files simultaneously. I dont want to use nested loops but simultaneously.
for f1,f2 `ls *.in` `ls *.out`;do
echo "$f1 $f2"
done
I get f1 and f2 not valid identified error
One way is this (here assuming bash):
Here I'm just echoing the strings but you can use any command you like,
diff
,cat
, etc instead ofecho
You can process this with essentially the same command as you did with your last question. Just remove the extra arguments and the Java command.