Skip to content

Instantly share code, notes, and snippets.

@coyotte508
Created July 1, 2012 14:21
Show Gist options
  • Save coyotte508/3028568 to your computer and use it in GitHub Desktop.
Save coyotte508/3028568 to your computer and use it in GitHub Desktop.
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