Re: Need a simple one time search utility
| From: | Nathan Nobbe | Date: | Mon, 14 Apr 2008 19:31:58 +0000 |
| Subject: | Re: Need a simple one time search utility | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272991@lists.php.net to get a copy of this message | ||
On Mon, Apr 14, 2008 at 1:11 PM, Daniel Brown <parasane@gmail.com> wrote:
> As a result, it was typed in /too much/ haste.... and as a result,
> made me look like a moron --- even moreso than normal! However, it
> also led me to add in a case-insensitive search option.
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.
-nathan