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

SAP: Segregate Different SMTP Mail Server Based on Sender Domain

SAP Client Copy Error: Errors occurred during export of container object FINB-TR-DERIVATION

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