[PLUG] sort option for 'natural' sequence
Paul Heinlein
heinlein at madboa.com
Tue Mar 31 14:52:57 UTC 2020
On Tue, 31 Mar 2020, tomas.kuchta.lists at gmail.com wrote:
> Everyone has different toolbox and regexp logic wired in their brains.
> I prefer to break things down somewhat step by step - and think ahead - mostly
> it is worth it.
I'm just the opposite; use the simple tool: -V option to GNU sort.
[bash]$ cat <<XXX | sort -V
>> 10
>> 18
>> 800
>> 7
>> 8
>> 1
>> 1000
>> XXX
1
7
8
10
18
800
1000
--
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W
More information about the PLUG
mailing list