I’m just putting this here so I can copy paste it the next time that I need it. It’s a little ditty that better organizes our Processed output folders. Navigate to the top directory of all the individual subject folders and run from there!


for file in *
do
cd $file mkdir -p Scripts for output in *.out *.m do mv$output --target-directory=Scripts
done
cd ..
done



Suggested Citation:
Sochat, Vanessa. "Creating Script Directory and Moving Files...." @vsoch (blog), 19 Jul 2010, https://vsoch.github.io/2010/creating-script-directory-and-moving-files/ (accessed 20 Mar 23).