help-recutils
[Top][All Lists]
Advanced

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

Re: [help-recutils] Determine record type’s key from CLI?


From: Paul Rankin
Subject: Re: [help-recutils] Determine record type’s key from CLI?
Date: Fri, 11 Nov 2016 22:58:08 +1000

This is messy but works....

$ recinf foo.rec -t fruit -d | sed -n "s/^%key:[ ]*\(.*\)/\1/p"

But yeah -P %key would be ideal.

-- 
Paul W. Rankin
www.paulwrankin.com

"Jose E. Marchesi" <address@hidden> on Fri, 11 Nov 2016 13:49 +0100:
> 
>     Is there any way to determine a record type’s key from the CLI?
> 
> Hmmm, no.
> 
> I thought of:
> 
> $ recinf -t fruit -d foo.rec | recsel -P %key
> 
> But recsel doesn't operate on record descriptors, unfortuantely.
> 
> I often thought of adding more stuff to recinf to get information about
> the record descriptors.  That would have avoided having to re-implement
> the type system in elisp for example.
>     



reply via email to

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