[Top][All Lists]
[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
- Re: gethostname, (continued)
- Re: gethostname, Simon Josefsson, 2008/08/12
- Re: gethostname, Sam Steingold, 2008/08/12
- Re: gethostname, Ben Pfaff, 2008/08/12
- Re: gethostname, Sam Steingold, 2008/08/12
- Re: gethostname, Ben Pfaff, 2008/08/12
- Re: gethostname, Sam Steingold, 2008/08/12
- Re: gethostname, Simon Josefsson, 2008/08/12
- Re: gethostname, Bruno Haible, 2008/08/12
- Re: gethostname, Ben Pfaff, 2008/08/12
- Re: gethostname, Bruno Haible, 2008/08/13
- Re: gethostname,
Simon Josefsson <=
- Re: gethostname, Eric Blake, 2008/08/13
- Re: gethostname, Simon Josefsson, 2008/08/12
- Re: gethostname, Sam Steingold, 2008/08/12
- Re: gethostname, Simon Josefsson, 2008/08/12
- Re: gethostname, Ben Pfaff, 2008/08/12
- Re: gethostname, Matthew Woehlke, 2008/08/12
- Re: gethostname, Bruno Haible, 2008/08/12