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

Patton, Eric epatton at nrcan.gc.ca
Wed Jan 11 10:45:29 EST 2006


>> Do you know why specifically it may not be the best way to export 
>> vectors (or rasters) this way? Assuming the target location the tarred 
>> vectors are going to has the same projection and datum, can't it be 
>> dragged and dropped?
>>

>My concern is that there may be some other, necessary, information outside
the 'vector' directory. In 'dbf', for example.
>An export-procedure should take care of those as well, while just tarring
the content of 'vector' does not.

>-flo.

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? 

~ Eric.




More information about the grass-user mailing list