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
DIR1
andDIR2
already populated with CSV files you wish to send to your Python script as parameters, or is the Python script creating CSV files you wish to place intoDIR1
andDIR2
? – DopeGhoti Feb 12 '19 at 15:49