On Wed, 2008-05-28 at 20:09 -0700, Hamish wrote: > Nikos: > > Something like > > > > ls -la $GISBASE/bin/*.* | grep -F r. | wc -l #for raster > > ls -la $GISBASE/bin/*.* | grep -F v. | wc -l #for vector > > ls -la $GISBASE/bin/*.* | grep -F g. | wc -l #for generic > > etc. > > > > All in a script and a nice report. > > > > Or there other methods (better than grep -F) doing this? > > Wolf: > > ls -1 $GISBASE/bin/r.* | wc -l #for raster > > etc. > > > > No need for grep or anything other then file names > > and even the -1 is optional, it automatically switches to that if stdout is > piped. > > also remember modules like xganim and nviz without a dot (if list method is > not regex) and the few redundant wrapper scripts (r.cats, r.terraflow.short, > ..) which are not seperate modules. > > > I don't really see the worth in a counting script, but if you really want > that the place to put it would be in the tools/ dir along with > build_html_index.sh and module_synopsis.sh.
I was asked (some times) how many modules has GRASS and was curious to count. > > another way, using tab completion: :) > GRASS> r.<tab><tab> > Display all 154 possibilities? (y or n) Wowww! This is the fastest I suppose ;-) Cool! > Hamish _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user