Created
August 3, 2017 09:44
-
-
Save ianchen06/14307bad6f2131201792a4c42fecf49e to your computer and use it in GitHub Desktop.
useful linux commands
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 | |
# replace words in file recursively | |
grep -r 'hello' -l --null . | xargs -0 sed -i 's#hello#world#g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment