I have a script in bash that transfer csv files to a python program from 2 differents directories like so :
#!/bin/bash
DIR1=/a/directory
DIR2=/another/directory
for f in DIR1
do
/direc/to/python3.7 /dir/scriptspython/.py $DIR1/$f
done
for n in DIR2
do
/direc/to/python3.7 /dir/scriptspython/.py $DIR2/$f
done
The problem is that i'd like the files from the directories to load one after the other like so : $DIR1/$f(1) then $DIR2/$n(1)...$DIR1/$f(x) then DIR2/$n(x)
My problem looks similar to this thread but with directories instead of files