Skip to content

Instantly share code, notes, and snippets.

@sangeth
Created July 13, 2010 22:15
Show Gist options
  • Select an option

  • Save sangeth/474629 to your computer and use it in GitHub Desktop.

Select an option

Save sangeth/474629 to your computer and use it in GitHub Desktop.
## Terminal :: Search for and replace text in a file
grep -Rl "locals\[" * --exclude=*.{svn,log,svn-base} | \
xargs sed -e 's/locals\[/local_assigns\[/g' -i .tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment