Created
June 11, 2019 04:08
-
-
Save miguelmota/9c288be87df3bb832dfbc9d54591d1c2 to your computer and use it in GitHub Desktop.
Bash remove empty newlines using awk
This file contains 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
awk 'NF' file.txt | |
# or | |
cat file.txt | awk 'NF' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment