[R] how to load only lines that start with a particular symbol

Patrick Connolly p_connolly at slingshot.co.nz
Wed Sep 16 10:49:52 CEST 2009


On Tue, 15-Sep-2009 at 02:44PM -0700, William Dunlap wrote:


|> perl can do more complicated processing and filtering than grep.

I once used perl to filter the useful 4 or 5 Mb out of a file that was
over 250Mb.  It took about 3 lines of perl code and about 40 seconds
to run.  Perl's not exactly my strong point, but I could look it up
next time I'm on that machine if anyone is interested.




-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.




More information about the R-help mailing list