Skip to content

Instantly share code, notes, and snippets.

@huzhifeng
Last active August 29, 2015 14:01
Show Gist options
  • Save huzhifeng/0996fef624b233309bfb to your computer and use it in GitHub Desktop.
Save huzhifeng/0996fef624b233309bfb to your computer and use it in GitHub Desktop.
Cleanup thumbnail created by thumbnailer.sh
#!/bin/bash
photo_dir='.'
if test $# -gt 0; then
photo_dir=$1
fi
thumbnail_dir='_thumbnail'
find $photo_dir -type d -name $thumbnail_dir |xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment