Skip to content

Instantly share code, notes, and snippets.

@spidersea
Created December 24, 2013 08:38
Show Gist options
  • Save spidersea/8110444 to your computer and use it in GitHub Desktop.
Save spidersea/8110444 to your computer and use it in GitHub Desktop.
#!/bin/bash
DATE1=`date +%Y/%m/%d`
DATE2=`date +%Y/%m/`
PIC_dir="/home/wwwroot/web/"
if [ -d ${PIC_dir} ]
then
cd ${PIC_dir} && find . -name "*.jpg" -exec convert -resize 110x150 {} {} \;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment