Hacker News new | ask | show | jobs
by vjoel 4622 days ago
Or:

   ruby -e 'puts ARGF.sort' file.txt
Also, this reads stdin if the argument is omitted.