[GRASS-dev] g.mapsets: adding switch for shell style listing

Nikos Alexandris nik at nikosalexandris.net
Thu Jan 17 02:57:13 PST 2013


Is there any reason _not_ to have shell style listing (line-by-line) of 
Mapsets?


So far,

- "g.mapset -l" prints available mapsets, inside the current LOCATION, the one 
after the other

- "g.mapsets -l" alphabetically lists all available Mapsets grouped in three 
columns
- "g.mapsets -p" prints the mapsets in current search path, again, grouped in 
three columns

I can't get them through a pipe to grep-em! Wouldn't it be useful, for one-
liners to have, for example, something like   "g.mapsets -l -g"  or  
"g.mapsets -p -g" that would list all/queried Mapsets in a line-by-line 
manner.

Thanks, Nikos


More information about the grass-dev mailing list