[GRASS-dev] g.mlist: exclude parameter wish
Paul Kelly
paul-grass at stjohnspoint.co.uk
Wed Nov 19 04:51:50 EST 2008
Hi Markus
On Wed, 19 Nov 2008, Markus Neteler wrote:
> Hi,
>
> would it be complicated to add an "exclude_pattern" parameter to
> g.mlist/g.mremove?
>
> Example: I want to select only the gpcp_1dd_p1d_*_count maps but not the monthly
> counts:
>
> g.mlist type=rast patt="gpcp_1dd_p1d_*_count"
What about
g.mlist type=rast patt="gpcp_1dd_p1d_????_count"
I think that should work with a shell script version of g.mlist anyway, as
? characters can be used to represent single characters in wildcard
patterns passed to the ls command.
Paul
> gpcp_1dd_p1d_1997_2007_month04_10_count
> gpcp_1dd_p1d_1997_count
> gpcp_1dd_p1d_1997_month04_10_count
> gpcp_1dd_p1d_1998_count
> gpcp_1dd_p1d_1998_month04_10_count
> gpcp_1dd_p1d_1999_count
More information about the grass-dev
mailing list