Re: Need a simple one time search utility
| From: | Daniel Brown | Date: | Mon, 14 Apr 2008 19:40:00 +0000 |
| Subject: | Re: Need a simple one time search utility | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272992@lists.php.net to get a copy of this message | ||
On Mon, Apr 14, 2008 at 3:31 PM, Nathan Nobbe <quickshiftin@gmail.com> 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!