!}sort
See the unix man page on sort for any additional options you may want to through at it.
The ! tells vim you want want process a block of text thru an external program
The } tells vim to send this paragraph
'sort' is the command to do the filtering/processing.
that's my basis understanding of what is happening.
On Saturday, January 30, 2021 at 3:41:51 AM UTC-5 niva...@gmail.com wrote:
Hi,I would like to sort lines by order ascendant by the alphabetical value of the two first columns.2021/01/13 15:05:52.417 FOO2021/01/13 15:05:52.417 FOO2021/01/13 15:05:52.417 FOO2021/01/13 15:06:05.151 FOO2021/01/13 15:06:05.151 FOO2021/01/13 15:06:05.151 FOO2021/01/13 15:06:05.151 FOO2021/01/13 15:06:05.151 FOO2021/01/13 15:06:08.354 FOO2021/01/13 15:06:08.354 FOO2021/01/13 15:06:08.354 FOO2021/01/13 15:06:05.151 BAR2021/01/13 15:06:05.151 BAR2021/01/13 15:06:05.151 BAR2021/01/13 15:06:05.151 BAR2021/01/13 15:06:05.151 BAR2021/01/13 15:06:05.151 BAR2021/01/13 15:06:08.354 BAR2021/01/13 15:06:08.354 BAR2021/01/13 15:06:08.354 BAR
--
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/e8505926-0b07-4071-b02d-7485bba1e512n%40googlegroups.com.
No comments:
Post a Comment