Last active
November 24, 2023 15:38
-
-
Save budgester/5ef21fdfb4eb705930b621c325b7b072 to your computer and use it in GitHub Desktop.
Search and Replace
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
Your find should look like that to avoid sending directory names to sed: | |
find ./ -type f -exec sed -i -e 's/apple/orange/g' {} \; | |
Delete lines in file | |
find ./ -type f -exec sed -i -e '/email/d' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment