Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove line from files using sed
sed -i '' '/expression/d' ./file*
# or, if you have a deep directory tree...
find . -name file* -maxdepth 3 -exec sed -i '' '/expression/d' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment