-
-
Save rodnaph/7351644 to your computer and use it in GitHub Desktop.
Making sed work as I expect on OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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