Created
July 9, 2012 07:19
-
-
Save hagope/3074771 to your computer and use it in GitHub Desktop.
bash script to deleting leading chars of file names in directory
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
#!/bin/bash | |
a=1 | |
for i in *.jpg; do | |
new=${i:9} | |
mv "${i}" "${new}" | |
let a=a+1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment