Using sed to remove empty lines


sed '/^$/d' myFile > tt 
mv tt myFile


ref: http://soft.zoneo.net/Linux/remove_empty_lines.php


//alak

Comments

Popular posts from this blog

Quick Dirty Script for Checking Oracle Data Gurad Gap and Emailing it

SAP SWPM Software Provision Manager SL Toolset 1.0 SP22 Startup Options

SAP SystemCopy - Activation of TCI Notes, DigiSIgn Gone Wrong