Skip to content

Instantly share code, notes, and snippets.

@budgester
Last active November 24, 2023 15:38
Show Gist options
  • Save budgester/5ef21fdfb4eb705930b621c325b7b072 to your computer and use it in GitHub Desktop.
Save budgester/5ef21fdfb4eb705930b621c325b7b072 to your computer and use it in GitHub Desktop.
Search and Replace
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