Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 31, 2016 08:54
Show Gist options
  • Save ableasdale/c6a792267c6e09d5a613fd664eed3e09 to your computer and use it in GitHub Desktop.
Save ableasdale/c6a792267c6e09d5a613fd664eed3e09 to your computer and use it in GitHub Desktop.
Grep to remove empty lines from a file
grep '[^[:blank:]]' < file.txt > file2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment