[GRASS5] set map title and metadata info using r.support

Glynn Clements glynn at gclements.plus.com
Mon Mar 27 13:55:00 EST 2006


Hamish wrote:

> I've added two options to r.support to let you change the map's title
> and add a line of metadata info to the map's hist/ file (viewable with
> r.info, r.info -h). They will both run non-interactively from the
> command line.

Given that r.support has historically been an interactive module, it
might be better to put this functionality into separate modules (which
was the approach I took with r.region).

> I am looking for a simple bashism to add to the examples section of the
> help page for feeding an input file one line at a time into the (looped)
> module.

	while read line ; do
	    r.support map="$map" history="$line"
	done < "$file"

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list