linux remove blank lines from fileSteve StonebrakerSeptember 13, 2012Linux, nginx, Redhat Centos To remove blank lines from a file on a unix or linux computer try this: # grep -v "^$" filename > newfilename