Created
August 31, 2016 08:54
-
-
Save ableasdale/c6a792267c6e09d5a613fd664eed3e09 to your computer and use it in GitHub Desktop.
Grep to remove empty lines from a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep '[^[:blank:]]' < file.txt > file2.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment