Skip to content

Instantly share code, notes, and snippets.

View deanomus's full-sized avatar

Dean Reinhardt deanomus

View GitHub Profile
#/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/