[GRASS-dev] Searching for output messages
Hamish
hamish_nospam at yahoo.com
Tue Jul 3 02:06:23 EDT 2007
Carlos Dávila:
> > What tool may I use to extract all output messages given by a
> > certain function (e.g. G_fatal_error) in the whole grass6 cvs tree?
Martin:
> If I understand well...
>
> E.g. (need improvements)
>
> $ grep "G_fatal_error" * -R | grep .c: | cut -d'"' -f2
In the past when writing new code or i18n'ing old code, to see the
already translated error msg options for a specific lib fn I've done
like:
grep -rI -A3 G_open_cell * | grep G_fatal_error
but to save time start in the raster/ dir for eg raster msgs.
Hamish
More information about the grass-dev
mailing list