[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'sort' command -- support more than one field-delimiter
From: |
Dani Moncayo |
Subject: |
Re: 'sort' command -- support more than one field-delimiter |
Date: |
Mon, 16 Oct 2023 18:51:13 +0200 |
On Mon, Oct 16, 2023 at 8:35 AM Dani Moncayo <dmoncayo@gmail.com> wrote:
> Perhaps a long option, like:
> $ sort --field-separators=" /" -n -k5 -k3 -k4 file1.txt
On second thought, that would be a fragile approach. It would fail
with a file like the below one.
So, I withdraw my proposal.
Sorry for the noise.
--
Dani Moncayo
$ cat file1.txt
SUSE 10.2 12/7/2006
Fedora GNU/Linux 10 11/25/2008
SUSE 11.0 6/19/2008
Ubuntu 8.04 4/24/2008
Fedora GNU/Linux 8 11/8/2007
SUSE 10.3 10/4/2007
Ubuntu 6.10 10/26/2006