Created
November 10, 2022 05:42
-
-
Save sfdcale/c1676a13c941f33bac1e2c78dac3abf7 to your computer and use it in GitHub Desktop.
Find + Grep + Sed
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
| # Find for files matching specific pattern | |
| # Check if specific text is there in that file | |
| # Replace that specific text with other text. | |
| find . -type f -not -iregex '.*node_modules.*' -exec grep -EHni 'abc' {} \; -exec sed -i '' -e 's/abc/xyz/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment