I have a similar question: How do you delete a empty line using "sed" or "ed" ? I have try the 'sed -e "/^$/d" filename ', but it doesn't work. -Thanx Peng (lee at iris.ucdavis.edu)