Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
delete raw image files without matching jpgs in the same directory


orphan_raw -- delete raw images without matching jpgs


orphan_raw [-v|--version | [-h|--help] [work_dir]


This script finds raw image files without corresponding jpg file and prompts user before removing them. It works by default in the working directory. An unnamed argument takes an alternative directory name.

Variable @RAW can be amended for additional raw image file extensions.

This is part of the workflow where raw files are processed into jpgs. This script is run after unwanted jpgs have been deleted.


You may distribute this program under the same terms as perl itself.


Heikki Lehvaslaiho, heikki lehvaslaiho a gmail com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment