[GRASS-dev] g.mlist: exclude parameter wish

Markus Neteler neteler at osgeo.org
Wed Nov 19 05:01:04 EST 2008


On Wed, Nov 19, 2008 at 10:51 AM, Paul Kelly
<paul-grass at stjohnspoint.co.uk> wrote:
> 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"

bingo :)

> 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.

This works, resolved for today.

Markus


More information about the grass-dev mailing list