Skip to content

Instantly share code, notes, and snippets.

@coyotte508
Created July 1, 2012 14:21
Embed
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