Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2012 14:21
What would you like to do?
Remove lines only containing a line number and a space
find db/moves -name "*.txt" -exec bash -c "sed '/^[0-9]* \$/d' {} > {}~ && mv {}~ {}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment