Created
January 5, 2021 17:33
-
-
Save deanomus/90274c596311a7a338edde66b497251a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
for D in *; do | |
if [ -d "${D}" ]; then | |
echo "Enter directory: ${D}" # your processing here | |
mkdir ${D}/raw | |
mkdir ${D}/jpg | |
cd ${D} | |
for f in *.JPG; do | |
echo "moving: ${f}" | |
mv ${f} jpg/ | |
done | |
for f in *.ARW; do | |
echo "moving: ${f}" | |
mv ${f} raw/ | |
done | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment