Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Find all files containing some text, then replace by something else
ag -l "TEXT_TO_FIND" . | xargs sed -i.bak 's/TEXT_TO_FIND/NEW_TEXT_TO_REPLACE/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.