Anyone care to explain what exactly means the -g option of sort? The
fine manual only says "general numerical", but I doubt that is true,
because -g (and all other options I have tried, -n, -M, -h, -V) will
all put Roman numeral 9 in between 4 and 5. See here:
# echo "III\nII\nI\nV\nIV\nVII\nVI\n
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sun, Feb 18, 2018 at 04:55:28PM +0100, Ionel Mugurel Ciobîcă wrote:
>
> Anyone care to explain what exactly means the -g option of sort? The
> fine manual only says "general numerical", but I doubt that is true,
> because -g (and all other options
On Sun 18 Feb 2018 at 16:55:28 (+0100), Ionel Mugurel Ciobîcă wrote:
>
> Anyone care to explain what exactly means the -g option of sort? The
> fine manual only says "general numerical", but I doubt that is true,
> because -g (and all other options I have tried, -n, -M, -h, -V) will
> all put Roma
David Wright writes:
> You shouldn't sort like that. If you've got records to sort which have
> an unsortable field like Roman months, then write some thing in sed
And Awk, as well as Sort, Cut, Join, and other record-oriented filters.
--
John Hasler
jhas...@newsguy.com
Elmwood, WI USA
On 18-02-2018, at 14h 44'27", David Wright wrote about "Re: sort (-g)
[offtopic]"
> Any script that reads stdin and writes stdout can be used in a pipe.
> That's one of the guiding principles of unix.
I change the scripts to use read if $# is zero. I could use the
* Ionel Mugurel Ciobica [18-02/18=Su 16:55 +0100]:
> [... How can something like
> "III\nII\nI\nV\nIV\nVII\nVI\nVIII\nX\nIX"
> [be sorted? ...]
See `aptitude show msort`; it probably does what you need.
On Sun, Feb 18, 2018 at 04:55:28PM +0100, Ionel Mugurel Ciobîcă wrote:
> Anyone care to explain what exactly means the -g option of sort? The
> fine manual only says "general numerical", but I doubt that is true,
> because -g (and all other options I have tried, -n, -M, -h, -V) will
> all put Roman
On Monday, February 19, 2018 06:23:27 AM Will Mengarini wrote:
> * Ionel Mugurel Ciobica [18-02/18=Su 16:55 +0100]:
> > [... How can something like
> > "III\nII\nI\nV\nIV\nVII\nVI\nVIII\nX\nIX"
> > [be sorted? ...]
>
> See `aptitude show msort`; it probably does what you need.
I'm not the OP, b
On 19-02-2018, at 03h 23'27", Will Mengarini wrote about "Re: sort (-g)
[offtopic]"
> * Ionel Mugurel Ciobica [18-02/18=Su 16:55 +0100]:
> > [... How can something like
> > "III\nII\nI\nV\nIV\nVII\nVI\nVIII\nX\nIX"
> > [be sorted? ...]
>
On Tue 27 Feb 2018 at 09:48:57 (+0100), Ionel Mugurel Ciobîcă wrote:
> On 19-02-2018, at 03h 23'27", Will Mengarini wrote about "Re: sort (-g)
> [offtopic]"
> > * Ionel Mugurel Ciobica [18-02/18=Su 16:55 +0100]:
> > > [... How can something like
>
On Tue, Feb 27, 2018 at 09:48:57AM +0100, Ionel Mugurel Ciobîcă wrote:
> # cat roman | msort -q -w -l -y ROMAN
> I
> II
> III
> IV
> IX
> V
> VI
> VII
> VIII
> X
> XI
> XII
> Did I miss anything?
Well, this program certainly is ... unusual. Doesn't just *work* by
default. No examples in the man
On 27-02-2018, at 08h 36'51", Greg Wooledge wrote about "Re: sort (-g)
[offtopic]"
> > Did I miss anything?
>
> Well, this program certainly is ... unusual. Doesn't just *work* by
> default. No examples in the man page. Anyway, it looks like yo
On 27-02-2018, at 07h 31'11", David Wright wrote about "Re: sort (-g)
[offtopic]"
> Yes, you need to read §3.4.2.8 over again:
> [...]
> IOW you should write a file containing
>
> I i
> II ii
> etc.
>
> and feed it to -s.
I can do that.
>
13 matches
Mail list logo