Created
June 11, 2014 11:14
-
-
Save sudevschiz/734f51725ab793ed6b21 to your computer and use it in GitHub Desktop.
Renaming filename bash script
This file contains 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
for file in *.jpg; | |
do | |
file ${file%*}; | |
convert -crop 300x300+300+80 $file cropped/$file; | |
#do whatever you want. The filename is in the $file variable. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment