Created
June 13, 2015 12:59
-
-
Save maiquelleonel/c8aa9cda60158da71c7d 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 | |
| pwd=$(pwd) | |
| cd app/imgs | |
| for file in $(ls ./); do | |
| name=(${file//_/ }) | |
| mv $file ${name[1]}"_"${name[2]} | |
| done | |
| cd $pwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment