Saturday, January 30, 2021

Re: sorting lines by two first virtual column

I have done that kind of sort from within Vim : sort /^.\{8}\zs.\{15}\ze/ r

But it ignores stamped date hour and not  two first columns >> then do the same job.

Le samedi 30 janvier 2021 à 19:27:41 UTC+1, rwmit...@gmail.com a écrit :
The input isn't it order.  The lines ending in BAR should get intermixed with FOO.

On Saturday, January 30, 2021 at 11:25:56 AM UTC-5 aro...@vex.net wrote:

>
> I would like to sort lines by order ascendant by the alphabetical value of
> the two first columns.
>

Are you on Windoes, or an *nix?

(The example file would be more useful if the input was not in order.)

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/371e2f9b-4ef4-4d3b-8866-70514a405a44n%40googlegroups.com.

No comments: