I wrote the following for
loop (spread over multiple lines here for better readability):
for F in CLEAN_READS/*_1.fa; do
R=${F%_*}_2.fa; BASE=${F##*/};
SAMPLE=${BASE%_*};
metascript assembly -1 $F -2 $R -o folder_${BASE%_*} &
done
When I run the loop all scripts are started in parallel. How can I change the loop to start the scripts in sequential order?
bash
). – Stéphane Chazelas Jan 22 '20 at 09:35