Created
June 16, 2019 10:42
-
-
Save betawax/7b8763c10d98dc90e86ddf9b8d37bc96 to your computer and use it in GitHub Desktop.
Search & Replace in place
This file contains 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
sed -i "s/foo/bar/g" foobar.txt | |
perl -i -pe "s/foo/bar/g" foobar.txt | |
ruby -pi -e "gsub(/foo/, 'bar')" foobar.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment