Re: Parsing a large file

From: Date: Fri, 13 Jan 2006 15:52:18 +0000
Subject: Re: Parsing a large file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228567@lists.php.net to get a copy of this message
best way I think is nohup grep -i string log1 log2 log3 ...logx > newfile & This will run this command in background and you can work on other meanwhile. Thanks Richard On 1/13/06, Wolf <LoneWolf@nc.rr.com> wrote: > > I have large log files from a web server (about a gig in size) and need > to parse each line looking for a string, and when encountered push that > line to a new file. I was thinking I could have PHP read in the whole > file, but thinking it could be a major pain since I have about 20 log > files to read through. > > Anyone have some suggestions? > > Thanks, > Robert > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#228567) next »