|
From: | Rowan Wookey |
Subject: | Re: recfmt tabular output returns one record only |
Date: | Thu, 2 Nov 2023 23:55:07 -0700 |
User-agent: | Mozilla Thunderbird |
Can you provide the recset command you used? And the version of recutils? On 02/11/2023 23:30, Wu Ming wrote:
Thanks. This is a surprise. Records were inserted with recins and recset so I did not add additional newlines myself. If .rec is: %rec: Tot CSV: 36 HTML: 2 %rec: Checks Dir: 19112 Name: First html: 128K Dir: 2375 Name: Second html: 124K it still works. If .rec is instead: %rec: Tot CSV: 36 HTML: 2 %rec: Checks Dir: 19112 Name: First html: 128K Dir: 2375 Name: Second html: 124K it won’t. recsel will return empty. I have chosen .rec for not having to deal with separators anymore. Do I need to avoid recset and recinst for recfmt to work instead?On 3 Nov 2023, at 13:26, Rowan Wookey <admin@rwky.net> wrote: The new lines in the check.rec are counted as part of the filed. If you remove these lines it will work for example if you change your check.rec to: %rec: Tot CSV: 36 HTML: 2 %rec: Checks Dir: 19112 Name: First html: 128K Dir: 2375 Name: Second html: 124K It will output: recsel -t Checks check.rec | recfmt -f template.txt 19112 First 128K 2375 Second 124K On 02/11/2023 21:06, Wu Ming wrote:recsel -C -t Checks check.rec | recfmt -f template.txt
-- Regards Rowan Wookey MSc Comp (Open), CISMP Server Administrator & Programmer Please add admin@rwky.net to your contacts/email whitelist. My GPG key https://www.rwky.net/admin_at_rwky.net.sig My SSH key https://www.rwky.net/id_rsa.pub
[Prev in Thread] | Current Thread | [Next in Thread] |