News for hackers. Stuff that matters.
Re:Ask HN: Sorting massive text files? by uuoc on Saturday August 14, 2010 @01:25PM (#1603652)
And you also gain a useless use of cat award: http://partmaps.org/era/unix/award.html

The above can be written: awk -F(dataseperator) "{print $(number of seperation to print)}" FILE | sort -g | uniq | sort -g

Re:Ask HN: Sorting massive text files? by ralph on Saturday August 14, 2010 @01:47PM (#1603699)
What do you and the original poster hope to achieve by

    ...| sort -g | uniq | sort -g
The second sort is doing nothing. And sort can do uniq, saving time and I/O.

    $ (seq 10; seq 5) | shuf | sort -gu | fmt
    1 2 3 4 5 6 7 8 9 10
    $