Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save indifferentalex/53cd3434174903a4539d0eeec262f510 to your computer and use it in GitHub Desktop.
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
// 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