Created
April 4, 2012 08:47
-
-
Save pete911/2299764 to your computer and use it in GitHub Desktop.
change underscores for hyphens in file names
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
for i in *.txt; do mv $i $(echo "$i" | sed 's/_/-/'); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this - http://www.commandlinefu.com/commands/browse/sort-by-votes