[Insight-users] bash script to search example files for terms

Luis Ibanez luis.ibanez at kitware.com
Mon Oct 19 14:45:45 EDT 2009


Darren, Andrew,

This is great.

Could any of you please send me the final version
of the SearchScript.sh file to update it in

             Insight/Examples

or...

If you need a CVS write account for ITK,
just let me know and we will set you up.


     Thanks


            Luis


-------------------------------------
On Wed, Oct 14, 2009 at 4:12 PM, Darren Weber
<darren.weber.lists at gmail.com> wrote:
>
>
> On Tue, Oct 13, 2009 at 8:37 PM, Andrew Maclean <andrew.amaclean at gmail.com>
> wrote:
>>
>> Hi Darren
>> I am not sure whether replacing grep with find is worthwhile. For VTK
>> the search time went from 0.5s to 9.6s when using the grep option.
>> Would you mind if I put this in as a comment so that people can
>> uncomment it if they wish?
>>
>
> Using the find command is fine (and looks like it is MUCH faster).  Also
> note that it might be lifted out of the for loops and placed directly after
> the declaration of the examplePath and testingPath.  In fact, if both the
> example and testing paths are below a root vtk path (as they often are),
> there could be one path variable and one declaration of the cxx, tcl, py
> variables to hold the results of the find commands on that root directory.
> If there is only one root directory, that would eliminate one of the for
> loops.
>
> (I find it convenient to see the output split up for the example and testing
> paths.  There could be several cxx, tcl, py variables that are specific to
> each path.  The order of the for loops could be switched around -- paths
> first, then key-words.)
>
> Anyhow, have fun with it!
>
> Best, Darren
>
>
>


More information about the Insight-users mailing list