Created
June 7, 2011 07:41
-
-
Save ShaneIsley/1011837 to your computer and use it in GitHub Desktop.
renamer
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
find . | perl -ne'chomp; next unless -e; $oldname = $_; s/^.+\s+0/0/; next if -e; rename $oldname, $_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment