Re: Need a simple one time search utility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 14, 2008 at 3:31 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:
>
>  grep -rin
>
> is my favorite :)  and --color is the shit too!  i wanted to add some more
> options to mine, but i was trying to prove a point sort-of and get something
> out the door as quickly as possible, based on OPs complaint (not being rude
> here, just sayin' is all).  i think it took me 20-30 minutes.  mainly
> because i was goofing up the regex syntax like a newb at first, then just
> juggling around some array functions and turning it into a class.
>
> im planning to spruce it up and add stdin support.

    foreach($argv as $k => $v) is your friend!

    Then, all you have to do is remember to
str_pad('l',3,'-',STR_PAD_BOTH) and strstr(strtolower('I'),'.').

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux