More thinking securely...

Amit Rao infinite1 at despammed.com
Wed Dec 10 09:40:20 PST 2003


> 
>     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 at 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






More information about the Kernel mailing list