bug-gnulib
[Top][All Lists]
Advanced

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

Re: gethostname


From: Simon Josefsson
Subject: Re: gethostname
Date: Wed, 13 Aug 2008 12:59:46 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Ben Pfaff <address@hidden> writes:

>     libc                solaris-2.10
>     libnsl              solaris-2.10
>     libnsl              solaris-2.4
>     libc                solaris-2.5.1
>     libnsl              solaris-2.5.1
...
> -        | sed -e 's,^\(....................\) *,\1,' | sort -k1,80
> +        | sed -e 's,^\(....................\) *,\1,' | sort -b -k 2,2 -k 1,1

Is there a sort option that results in the output being something like
the below?

     libnsl              solaris-2.4
     libc                solaris-2.5.1
     libnsl              solaris-2.5.1
     libc                solaris-2.10
     libnsl              solaris-2.10

I.e., normal alphabetical, but sort digits in numeral order.

/Simon




reply via email to

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