[PLUG] Specifying numeric order to sort

David Fleck david.fleck at mchsi.com
Mon Oct 29 23:39:51 UTC 2018


On Mon, 2018-10-29 at 15:51 -0700, Rich Shepard wrote:
> 
   The command 'sort -n -r -k 3 number-samples-per-site.txt -o sorted' is an
> example. And, the reverse option is ignored when I specify a numeric format.
> (Whether the -k option has a space before the 3 makes no difference here.)
> 
>    I'm not seeing what I'm missing.

I think you're missing the '-t' option.  Try

sort -n -r -t '|' -k 3 number-samples-per-site.txt -o sorted




More information about the PLUG mailing list