sed with multiple criteria
sed -e 1d -e 50d -e ‘/junks/d’
would remove first and 50th line & any line(s) with the word “junks”.
update 20080821 :
sed -e ‘/^$/d’
would remove every empty line
sed -e 1d -e 50d -e ‘/junks/d’
would remove first and 50th line & any line(s) with the word “junks”.
update 20080821 :
sed -e ‘/^$/d’
would remove every empty line