Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr1172 :: LiTS 022: Sort

Sort lines of text files with the sort command

<< First, < Previous, , Latest >>

Hosted by Dann on Tuesday, 2013-01-29 is flagged as Explicit and is released under a CC-BY-SA license.
sort. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr1172

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:15:30

Linux in the Shell.

Linux In The Shell aims to explore the use of many commands a user can run in the Bash Shell. Tutorials include a write up with examples, an audio component about the write up, and a video component to demonstrate the usage of the command.
The website is https://www.linuxintheshell.com/

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

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?