# # sort
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2003/09/08 sort

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© September 2003 Tony Lawrence

The most often missed thing about Unix sort is its incredible versatility. If MSDOS sort is an eggbeater, this is a Cuisinart.

Sure, probably 99% of the time Unix folks don't do anything special with it: it's just "sort this" or "sort -r that". Once in a while we'll throw in a "+4", "-u" or a "-n", but most of sort's power goes unused (just like your Cuisinart).

I'm not suggesting that you should go read the man page and become an expert on the more esoteric features. Just like everyone else, you won't need them very often, so why expend the effort? However, you might want to play around a bit to understand the power that is there, so if the need for it ever arises, you'll know that sort is a tool you can use. And who knows, someday you might use that expensive blender for something more than Banana Daiquiris, right?

Check out sort -g vs. sort -n and Sort -u vs. uniq, too.


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> sort


Inexpensive and informative Apple related e-books:

El Capitan: A Take Control Crash Course

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of iCloud

Take Control of Numbers

Photos: A Take Control Crash Course





More Articles by © Tony Lawrence





Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Yeah, it's obsolete, clunky, insecure and broken, but people still use this stuff (Tony Lawrence)




Linux posts

Troubleshooting posts


This post tagged:

Scripting

Shell

UnixWords



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode