Skip to content

Instantly share code, notes, and snippets.

@trotter
Created August 25, 2008 12:19
Show Gist options
  • Save trotter/7066 to your computer and use it in GitHub Desktop.
Save trotter/7066 to your computer and use it in GitHub Desktop.
Rename all but the partials
for file in $(find app/views -name *.haml); do ruby -e "new_file = ARGV[0].sub('.haml', '.html.haml'); unless ARGV[0] =~ %r[/_]; %x[git mv #{ARGV[0]} #{new_file}]; end" $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment