Last active
February 24, 2017 04:58
-
-
Save xhad/8b1bcef3bbac941ee26dd04d673e4de7 to your computer and use it in GitHub Desktop.
Linux Sed, Find 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
find ./ -type f -name '*.spec.ts' -print0 | xargs -0 sed -i '/^start_string/s/it(/xit(/' | |
find ./src/modules -type f -exec sed -i '/^/s/it(/xit(/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment