Skip to content

Instantly share code, notes, and snippets.

@danriti
Last active December 28, 2015 19:39
Show Gist options
  • Save danriti/7551646 to your computer and use it in GitHub Desktop.
Save danriti/7551646 to your computer and use it in GitHub Desktop.
Search and replace text in files
#!/bin/bash
git grep -l replaceMe | xargs sed -i 's/replaceMe/replace.me/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment