httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wagner, Aaron" <aaron.wag...@bankofamerica.com>
Subject RE: [users@httpd] Delete Blank Lines In A Text File
Date Tue, 27 Dec 2005 22:35:25 GMT
k, I didn't see you filehandle on the fwrite.  
I didn't know that you could write to the same file your reading?

Interesting

 
Thanx
Aaron N Wagner
Monitoring Systems and Network Tools
CCO-Command Center Operations
804.515.6298
 

> -----Original Message-----
> From: Ken Robinson [mailto:kenrbnsn@rbnsn.com] 
> Sent: Tuesday, December 27, 2005 5:05 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Delete Blank Lines In A Text File
> 
> Quoting "Wagner, Aaron" <aaron.wagner@bankofamerica.com>:
> 
> > That's nice but it doesn't fix the blank lines it just 
> skips them in the
> > file parse.  I think he wants to clean the file.  If the 
> file gets big,
> > he could take a performance hit skipping multiple lines.
> 
> If you ran the script you would see that the output file doesn't have 
> the blank
> lines. You can easily make the output file the same as the 
> input file, so you
> end up with a cleaned file.
> 
> I wrote & tested the script before I posted it.
> 
> Ken
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message