Skip to content

Instantly share code, notes, and snippets.

@deanomus
Created January 5, 2021 17:33
Show Gist options
  • Save deanomus/90274c596311a7a338edde66b497251a to your computer and use it in GitHub Desktop.
Save deanomus/90274c596311a7a338edde66b497251a to your computer and use it in GitHub Desktop.
#/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