26 Mar Remove Spaces between lines in a text file by kayals in Linux, System AdministrationComments grep -e '[^\n]' temp.txt > temp.out Related posts:Using cut on file full of ls -l output to display only filenamesHow to run multiple Linux commands from one linePower off a virtual machine in an ESXi host using the command line Tags: grep,Linux