sed -e 's;^\w*$;;' file-to-clean | grep -v '^$'
Why not use egrep to do it in one pass? Something like: egrep -v '^\w*$' file-to-clean
sed -e 's;^\w*$;;' file-to-clean | grep -v '^$'
Why not use egrep to do it in one pass? Something like: egrep -v '^\w*$' file-to-clean