[GRASSLIST:9793] Re: Bash shell scripting question for batch archiving Grass vectors

Florian Kindl florian.kindl at uibk.ac.at
Wed Jan 11 11:33:06 EST 2006


On 11.01.2006, at 16:45, Patton, Eric wrote:
>
> Then how about (in PERMANENT):
>
> for map in `g.mlist type=vect pattern='vectorname'`; do tar cvf  
> `basename
> $map.tar` ./*/$map* ; done
>
> Would that be sufficient?

Looks good to me.
Alas, I'm not so proficient in GRASS GIS that I could give a definite  
advice on that.

I'd add the z flag to tar (tar cvzf ...) for compression.

-flo.




More information about the grass-user mailing list