Skip to content

Instantly share code, notes, and snippets.

@hoolymama
Created May 4, 2012 01:28
Show Gist options
  • Save hoolymama/2591067 to your computer and use it in GitHub Desktop.
Save hoolymama/2591067 to your computer and use it in GitHub Desktop.
sed replace overwriting files
for f in `grep -rl darwin64 *`
do
sed 's/darwin64/linux64/g' $f > $f.new
mv $f.new $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment