Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR1172: LiTS 022: Sort

Hosted by Dann on 2013-01-29 00:00:00
Download or Listen

The sort command does just that, it sorts input.  Input can be a list of files, standard in, or files with standard in. The first example presents this simple file, shopping.txt,  containing a list of items:

chicken
fish
sour cream
bread crumbs
milk
eggs
bread
sinkers
fishing hooks

Issuing the sort command on this file:

sort shopping.txt

Would present the following output:

bread
bread crumbs
chicken
eggs
fish
fishing hooks
milk
sinkers
sour cream

For more information including a complete video please see https://www.linuxintheshell.com/2013/01/29/episode-022-sort/

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.