sed '/^$/d' does not delete empty lines on the attached file. -- Tan Chin Huat HP : 010 225 1918 eMail : tch1126@gmail.com