Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri, 4 Oct 2013 15:37:53 +0200

On Fri, Oct 04, 2013 at 05:32:23PM +0400, Alexander S. wrote:
> Uh, cannot this be achieved by piping output to tac?

Yes, but tac it is no a standard posix tool, and sbase also hasn't it.
I have an awk script in my machine for it:

#!/usr/bin/awk -f
        {line[last++] = $0;}
END {
        for (i = last-1; i >= 0; i--)
                print line[i];
}




-- 
Roberto E. Vargas Caballero
----------------------------
k0ga_AT_shike2.com
http://www.shike2.com
Received on Fri Oct 04 2013 - 15:37:53 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 04 2013 - 15:48:07 CEST