Skip to content

Instantly share code, notes, and snippets.

@orientalperil
Created February 18, 2011 08:04
Show Gist options
  • Save orientalperil/833404 to your computer and use it in GitHub Desktop.
Save orientalperil/833404 to your computer and use it in GitHub Desktop.
use ack and sed to find and replace
ack --print0 -irl 'replace_me' location/ | xargs -0 -L1 sed -i '' 's/replace_me/with_me/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment