Skip to content

Instantly share code, notes, and snippets.

@simon-liu
Last active December 28, 2019 04:13
Show Gist options
  • Save simon-liu/ae1bd2922843d492190df2483aa850d5 to your computer and use it in GitHub Desktop.
Save simon-liu/ae1bd2922843d492190df2483aa850d5 to your computer and use it in GitHub Desktop.
sed search & replace
sed -i -- 's/hello/moto/g' **/*(D.)
sed -i 's/hello/moto/g' file.txt
find /home/bruno/old-friends -type f -exec sed -i 's/ugly/beautiful/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment