Created
April 23, 2018 11:40
-
-
Save indifferentalex/53cd3434174903a4539d0eeec262f510 to your computer and use it in GitHub Desktop.
Find regex across all files of given format and remove all lines in which it is present
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
// Linux | |
find ./**/*.js | xargs sed -i '/regex/d' | |
// OS X | |
find ./**/*.js | xargs sed -i '' '/regex/d' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment