Re: No 6.05/.01 pdf book available

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

 



On 2023-08-14 08:49, Brian Inglis wrote:
>> <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=aab14503ef101d918046aeaa941f226685fe7bf5>
>>
>> #!/bin/sh
>>
>> # Copyright 2023, Alejandro Colomar <alx@xxxxxxxxxx>
>> # SPDX-License-Identifier: GPL-3.0-or-later
>>
>> sed   -E '/\/intro./  s/.*\.([[:digit:]])/\10\t&/' \
>> | sed -E '/\/intro./! s/.*\.([[:digit:]])\>/\11\t&/' \
>> | sed -E '/\/intro./! s/.*\.([[:digit:]])([[:alnum:]]+)/\12.\2\t&/' \
>> | sed -E '            s/\t(.*)/&\n\1/' \
>> | sed -E '/\t/        s/([^[:digit:]])[_-]([^[:digit:]])/\1\2/g' \
>> | sed -E '/\t/        s/[_-]/_/g' \
>> | sed -E '/\t/        {N;s/\n/\t/;}' \
>> | sort -fV \
>> | cut -f3;
> 
> Perl RPM::VersionSort rpmvercmp produces the desired order, ignoring leading 
> non-alphanumerics, treating all non-alphanumerics as field delimiters, treating 
> alphabetic and numeric strings as separate fields; see attached log.

Nice, it seems they implement a differen version sorting than GNU coreutils' sort(1).

Cheers,
Alex

> 

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux