Skip to content

Instantly share code, notes, and snippets.

@fnobi
Last active August 29, 2015 14:07
Show Gist options
  • Save fnobi/139d4acc2d6776af07e9 to your computer and use it in GitHub Desktop.
Save fnobi/139d4acc2d6776af07e9 to your computer and use it in GitHub Desktop.
複数のファイルに対して、特定の語を一気に置き換え ref: http://qiita.com/fnobi/items/6761eb7c64ab1b0d98eb
# project_aを含むファイルを、すべてproject_bに置き換えて保存
ag -l project_a | xargs sed -i '' -e 's/project_a/project_b/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment