UNIX sort: Sorting something from the clipboard

Posted by Iker Jimenez on Stack Overflow See other posts from Stack Overflow or by Iker Jimenez
Published on 2010-03-12T17:50:34Z Indexed on 2010/03/12 17:57 UTC
Read the original article Hit count: 292

Filed under:
|
|

The other day I saw a colleague of mine using sort to sort a number of lines he copied from a text file.

I've been trying to reproduce it myself and I cannot seem to find how.

The requirements are as follow:

  • Use sort from command line, plus whatever else you need to add to configure input

  • Paste the text to be sorted from the clipboard

  • Get the sorted result in the console

© Stack Overflow or respective owner

Related posts about unix

Related posts about sort