[GRASS-user] List of existing values

Hamish hamish_b at yahoo.com
Thu Jul 22 03:11:50 EDT 2010


Martin Landa wrote: 
> > as mentioned in Hamish's response, use combination of
> > `sort` and `uniq`
> > 
> > r.starts -1 input=data | sort | uniq
> 
> shorter:
> 
> r.starts -1 input=data | sort -u

AFAIR, those are not the same thing and can not be used
interchangeably. (although I don't fully remember why right now)


anyway, for floating point maps I still think it's a bad idea.


I'm sure there is a Python equivalent of 'sort|uniq', but don't
know what it is.


'sort' and 'uniq' are UNIX command line power tools and not
available in MS Windows. But.. the MSys command prompt that
ships with WinGrass supplies them and you can use them there.
I suppose the "bin" dir where they are kept are not part of the
gui's PATH which is why they wouldn't work from the Cmd> gui
prompt.


Hamish



      


More information about the grass-user mailing list