help-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recfmt tabular output returns one record only


From: Wu Ming
Subject: Re: recfmt tabular output returns one record only
Date: Fri, 3 Nov 2023 14:30:00 +0800

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
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]