Print this page. Recommend
Slashdot it! Delicious Digg

Organizing Lists with the sort Command

GETTING SORTED

Author(s): HEIKE JURZIK

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:


Read full article as PDF »


Comments


Print this page. Recommend
Slashdot it! Delicious Digg
Related Articles
Getting the swing Converting Audio Formats
A Call for New Manpages! Creating Manpages with groff
ApacheCon US video archive

All about Apache in 19 talks

Watch 19 talks from the ApacheCon US in New Orleans from the convenience of your home or office. Topics are: Scaling Apache 2.x in all dimensions, Securing Communications with your Apache HTTP Server, Scripting your Java Application with BSF 3.0 and much more.

Find out more

 

In the US and Canada, Linux Magazine is known as Linux Pro Magazine.
Entire contents © 2009 [Linux New Media USA, LLC]
Linux New Media web sites:
North America: [Linux Pro Magazine]
UK/Worldwide: [Linux Magazine]
Germany: [Linux-Magazin] [LinuxUser] [EasyLinux] [Linux-Community] [Linux-Nachrichten] [Linux Events]
Eastern Europe: [Linux Magazine Poland] [Linux Community Poland] [Darmowe Programy Poland] [Open Source DVD Poland] [Linux Magazin Romania]
International: [Linux Magazine Brazil] [Linux Magazine Spanish]
Corporate: [Linux New Media AG]