sorting by certain columns in a file
I always knew that ’sort’ command has ‘-k N’ flag which tells to sort based on columns N,…. I just recently find out that this flag is even more versatile, and it can be used as ‘-k N,M’ which will sort based on columns N,…,M. As usuall, it’s in the man page, but i always missed it so far
.


That’s good to know… in a month or so
I didn’t even know about the -k option
Comment by gnobal — March 9, 2009 @ 15:06