How to get rid the new line

John La Rooy larooy at xtar.co.nz
Fri Jun 28 23:08:49 EDT 2002


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

> SiverFish <occeanlinux at linuxmail.org> 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 yahoo.ca>
> 8-CPU Cluster, Hosting, NAS, Linux, LaTeX, python, vim, mutt, tin

This is easier to type. I wonder which is faster

grep .

John



More information about the Python-list mailing list