cricetus: how to search a log file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mohummad.ali
Forum Newbie
Posts: 1
Joined: Mon Jul 27, 2009 3:34 pm

cricetus: how to search a log file

Post by mohummad.ali »

hello folks!
am new here!
could someone tell me how to search in a huge log file for a string?
is there a simpler way than cricetus? if not, how do you install it?
thanks!
ali



p.s. i am on a mac (just in case! )
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: cricetus: how to search a log file

Post by requinix »

How do you install a European Hamster?
Image

From a command line/terminal: you're on a Mac so you probably have grep.

Code: Select all

man grep
From PHP... why do you need this? How large a file?
Post Reply