source .env/bin/activate python3 make_folders.py for f in ./*.mp3; do ffprobe "$f"; done for f in ./*.flac; do ffprobe "$f"; done mkdir ../temp rm -r ../temp/* mv ./*/ ../temp #move all directories mv ./*.mp3 ../temp #move all mp3 files mv ./*.flac ../temp #move all flac files mv ./*.m4a ../temp #move all m4a files rsync -arv ../temp/* ../Music