[GRASS-dev] Re: [GRASSLIST:962] Re: GRASS and vector lines: how can I change the direction of digitized lines?

Hamish hamish_nospam at yahoo.com
Thu May 18 00:30:33 EDT 2006


> > A possible workaround would be to to convert long, continous sets
> > > like eg. 1,2,3,4,5,...,100 into 1-100 and so on to save space. Is
> > > there an easy way of doing it?
> > 
> > don't know.
> 
> I think I solved the problem, lines 128-137. I took care to handle any
> possible combination of "," and "-" lists. Time will show :).


tr ',' '\n'
grep '-'
tr '-' ' '
seq $1 $2
cat single_list seq_lists > cat_lists
sort -n | uniq

?


> Also I want to send most of the messages into /dev/null.

be careful of masking error messages.


nothing new, but many of these hints are listed here:
 http://freegis.org/cgi-bin/viewcvs.cgi/grass6/SUBMITTING_SCRIPTS?rev=HEAD




Hamish




More information about the grass-dev mailing list