Friday, January 15, 2021

Fast Dump file content into array or dict

Hi,

I got this kind of classical logfile :

2021/01/14 07:42:22.588 Information  Foo dbg 
2021/01/14 07:42:22.588 Information  Bar dbg 
2021/01/14 07:42:22.588  Information    Foobar dbg 
2021/01/14 07:42:22.588  Information    Barbar dbg 
..
.

and would like to add all lines' informations split by space into dict or array in vim9script.
['2021/01/14', '07:42:22.588', 'Information  Foo dbg   ']


What's the fastest method please ?

Best Wishes 2021
NiVa

--
--
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/5fcc9436-545c-4b37-b265-1d748a3a620en%40googlegroups.com.

No comments: