Skip to content

Instantly share code, notes, and snippets.

@ShaneIsley
Created June 7, 2011 07:41
Show Gist options
  • Save ShaneIsley/1011837 to your computer and use it in GitHub Desktop.
Save ShaneIsley/1011837 to your computer and use it in GitHub Desktop.
renamer
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