Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- # delete jpg from subdir if raw exists
- find * -name '*.NEF' -o -name '*.CR2' \
- | while read raw
- do
- jpg="$(echo "$raw" | sed -e 's/....$//').JPG"
- if test -e $jpg
- then
- echo "because “$raw”; delete “$jpg”"
- rm -v "$jpg"
- fi
- done
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement