[GRASS5] i.group and g.mlist/tcsh problem
hamish_nospam at yahoo.com
Thu Nov 18 01:57:26 EST 2004
> with tcsh we have an annoying problem here (works fine with bash):
> GRASS 5.7.cvs > i.group gr=avgroup in=`g.mlist rast sep=, pat="av*"`
> Word too long.
> GRASS 5.7.cvs > g.mlist rast pat="av*" | wc -l
> GRASS 5.7.cvs > g.mlist rast pat="av*" | wc -c
> 19232 characters are really not that much. Any tricks to
> extend that (solution for non-root users)?
> G57cvs> i.group gr=avgroup in=`g.mlist rast sep=, pat="av*"`
Is tcsh going to take a command longer than 4096 chars long?
maybe pipe 'g.mlist sep=\n' to a file and then use a loop with head &
tail to feed 100 names at a time until done..
.. or just make a $MAPSET/group/groupname/REF file directly with awk.
Apparently just "$map $mapset\n"
More information about the grass-dev