Created
February 15, 2017 03:09
-
-
Save underground/2f3412fb5de0f00326f5835e5aeb004e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEST_DIR=dest | |
mkdir $DEST_DIR | |
for file in `find . -type f | sed 's!^.*/!!'`; do | |
if [[ ! "$file" =~ sh$ ]]; then | |
echo ${file} | |
`convert $file -thumbnail 20% $DEST_DIR/$file` | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment