Issue
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
Solution
If you type sort -
the command will accept input from stdin. Then you can just paste whatever you want into the console and type CTRL-D to sort it.
Answered By - Justin Ethier Answer Checked By - Terry (WPSolving Volunteer)