How to get rid the new line

John La Rooy larooy at
Sat Jun 29 05:08:49 CEST 2002

On 27 Jun 2002 18:30:15 GMT
William Park <opengeometry at> wrote:

> SiverFish <occeanlinux at> wrote:
> > Anyone tell me how to skip the empty line when you read through the file
> > and copy the information in to the list(no empty line )
> A bit off topic... but this question just cries out for 
>     sed 's/^$/d'
> -- 
> William Park, Open Geometry Consulting, <opengeometry at>
> 8-CPU Cluster, Hosting, NAS, Linux, LaTeX, python, vim, mutt, tin

This is easier to type. I wonder which is faster

grep .


More information about the Python-list mailing list