Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created April 3, 2013 11:50
Show Gist options
  • Save ppworks/5300541 to your computer and use it in GitHub Desktop.
Save ppworks/5300541 to your computer and use it in GitHub Desktop.
一括置換するときのアレ ref: http://qiita.com/items/f54ea7601c0727c6b0a4
find . ! \( -path "./.git*" -or -path "./tmp*" -or -path "*assets*" -or -path "*log*" -or -path "*doc*" \) -type f -print0 | xargs -0 ruby -i -p -e '$_.gsub! %q{hoge}, %q{fugo}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment