coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

enhancement suggestions for "sort" for sorting for text


From: Schneider, Silvio-MGB
Subject: enhancement suggestions for "sort" for sorting for text
Date: Wed, 5 Mar 2025 13:15:47 +0000

Dear guardians for the coreutils

I would like to sort some hundert lines like

host server1    programname is not running

host server2    programname is running

host server214b programname is running

host server300c programname is not running
to

host server2    programname is running

host server214b programname is running

host server1    programname is not running

host server300c programname is not running

I do have some quirky workarounds using other programs or with sort -k5 -r
but it took me a very long time to get to it

Therefore I am suggesting a

sort -text=STRING
               sort according to STRING
parameter.

as example
sort -text="is running"  filename.txt

Beging compatible with other options like -n for numeric sort.

I am interested what you think about it and if a push request for source code 
would be accepted ?

Best Regards

Silvio Schneider
Service und Delivery Manager LINUX

Migros-Genossenschafts-Bund | Group IT | Limmatstrasse 152 | CH-8005 Zürich
silvio.schneider@mgb.ch <mailto:silvio.schneider@mgb.ch>
Facebook<https://www.facebook.com/migros> | 
Instagram<https://www.instagram.com/migros/> | 
X<https://www.twitter.com/migros> | Xing<https://www.xing.com/company/mgb> | 
LinkedIn<https://ch.linkedin.com/company/migros-genossenschafts-bund>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]