Skip to content

Instantly share code, notes, and snippets.

@joemaller
Created September 13, 2012 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaller/3715084 to your computer and use it in GitHub Desktop.
Save joemaller/3715084 to your computer and use it in GitHub Desktop.
shell one-liner to rename @2x files so they work with compass sprites
ruby -e 'Dir.glob("*@2x.*").each { |f| %x[ git mv #{f} #{f.gsub("@", "_")} ] }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment