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

NAME

orphan_raw -- delete raw images without matching jpgs

SYNOPSIS

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

DESCRIPTION

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.

LICENSE

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

AUTHOR

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