Organizing Lists with the sort Command
sort helps you organize file lists and program
output. And if you like, you can even use this small
but powerful tool to merge and sort multiple files.
The sort command allows you to
sort a file line by line. The command
can either process a specified
file or read from standard input. You
decide the sort criteria – sort has parameters
that give you granular control.
Simple Sorting Exercises
/etc/passwd is an excellent place to start
experimenting with sort. If you look
inside the file, you will see that the lines
comprise a number of fields, for example:
Buy this article as PDF
Xen project announces a privilege escalation problem for Qemu host systems
Attackers can compromise an Android phone just by sending a text message
PC vendor will pre-install Ubuntu on portables in India.
More embarrassment for Adobe's embattled multimedia tool
Mozilla’s script blocker add-on could be putting malware sites on the whitelist.
The Internet community officially banishes the notoriously unsafe Secure Sockets Layer protocol.
Popular desktop environment continues the Gnome 2 legacy – with new support for the Gnome 3 toolkit.
New program will dial up security for the Firefox browser.
Red Hat's community distro embraces the cloud.