Skip to content

Instantly share code, notes, and snippets.

@rodnaph
Last active December 27, 2015 15:59
Show Gist options
  • Save rodnaph/7351644 to your computer and use it in GitHub Desktop.
Save rodnaph/7351644 to your computer and use it in GitHub Desktop.
Making sed work as I expect on OSX
#!/bin/sh
#
# Drop in ~/bin/said and chmod 755
#
# Usage:
#
# ./said 's/foo/bar/g' some/folder/*
#
find $2 -type f -exec sed -i '' $1 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment