hELLO all <div>Regarding the use of r.stats -1 input=image | sort | uniq</div><div>I have sent a message saying that this works just fine but...</div><div><br></div><div>I have only tested in WinGRASS 6.4.RC6). When I tried in Linux (GRASS6.4.0RC6) I got this error:</div>
<div><div>Sorry &lt;|&gt; is not a valid option</div><div>Sorry &lt;sort&gt; is not a valid option</div><div>Sorry &lt;|&gt; is not a valid option</div><div>Sorry &lt;uniq&gt; is not a valid option</div></div><div><br></div>
<div>Why do I obtain different results in Win and in Linux? and How can I do this in Linux?</div><div><br>Thanks</div><div>Nikos</div><div><br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 4:17 PM, Martin Landa <span dir="ltr">&lt;<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Hi,<br>
<br>
2010/7/20 Nikos Dumakis &lt;<a href="mailto:nikosdu1980@gmail.com">nikosdu1980@gmail.com</a>&gt;:<br>
</div><div class="im">&gt; In my case I have not more than 1200 different cell values. If I do :<br>
&gt; r.stats -1 input=data<br>
&gt; I obtained a list of all pixel values but what I am lookinf is for the<br>
&gt; unique values (not repeated).<br>
<br>
</div>as mentioned in Hamish&#39;s response, use combination of `sort` and `uniq`<br>
<br>
r.starts -1 input=data | sort | uniq<br>
<div><div></div><div class="h5"><br>
Martin<br>
<br>
--<br>
Martin Landa &lt;landa.martin <a href="http://gmail.com" target="_blank">gmail.com</a>&gt; * <a href="http://gama.fsv.cvut.cz/~landa" target="_blank">http://gama.fsv.cvut.cz/~landa</a><br>
</div></div></blockquote></div><br></div>