LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 06-16-2017, 05:37 PM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,359

Rep: Reputation: 118Reputation: 118
LXer: Sorting numbers inside text strings


Published at LXer:

I have a script that compiles and sorts museum collection data. One of the data fields is for museum registration codes, and a plain sort doesn't understand that humans expect "KS.99", for example, to come before "KS.100". My script instead uses the magic "-V" option for GNU sort, and gets the human-friendly result.

Read More...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Compare Numbers, Strings and Files in Bash Shell Script LXer Syndicated Linux News 0 04-27-2017 10:45 AM
Extract info and find/count strings from blocks inside text file Alkass Programming 6 01-24-2015 12:26 PM
Extract info and find/count strings from blocks inside text file Alkass Linux - Newbie 1 01-24-2015 11:16 AM
[SOLVED] Replace text string with sequential numbers inside a textfile K-Veikko Programming 3 04-07-2013 03:23 AM
Script to compare numbers inside two text files bugg_deccan Programming 3 10-17-2007 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration