DragonFly BSD
DragonFly kernel List (threaded) for 2003-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: More thinking securely...


From: Amit Rao <infinite1@xxxxxxxxxxxxx>
Date: Wed, 10 Dec 2003 12:40:20 -0500

> 
>     Here are two little scripts I use *ALL* the time to search for things
>     in
>     the source tree.   They are invaluable.  The first one is used simply
>     by
>     typing 'search searchterms'.  I use the second one in the form
>     'vi `pullout searchterms`'.

Have you tried /usr/ports/devel/global ?


-Amit
 
> -Matt
> Matthew Dillon
> <dillon@xxxxxxxxxxxxx>
> 
> #!/bin/csh
> #
> # /usr/local/bin/search
> 
> find . -type f -and -not -name '*.*o' -and -not -name '*.a' -and -not
> -name '*.kld' | fgrep -v ./compile | xargs egrep "$argv" | egrep -v
> 'Binary'
> 
> 
> 
> #!/bin/csh
> #
> # /usr/local/bin/pullout
> 
> /usr/local/bin/search $argv | awk -F : '{ print $1; }' | sort | uniq




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