[Top][All Lists]

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

Re: [help-recutils] Select records by number

From: F.
Subject: Re: [help-recutils] Select records by number
Date: Thu, 5 Jan 2012 16:58:38 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Jose E. Marchesi <address@hidden> a écrit le 2012-01-05 15:16:19 +0100 : 

>     >     For the a random record I use this in my script:
>     > 
>     > I am curious: what are you using the random selection feature for?  A
>     > file with fortune cookies?  The message of the day?
>     Are you read my mind ;)
>     You're right, I use random to select a random quote with conky on my
>     root window.
>     rec file is more simple, human friendly, scalable and editable than
>     fortune (you don't have to use strfile).
> Actually it is a shame fortune is not using plain text files.  Shall we
> contact them to ask them to use recfiles instead? :)

Sure, it'll be a major update ;)

>     Waiting the next version with impatience.
> It will come soon.
>     Do you plan to have multiple fileds sort ?
>     %sort: field1, field2 ...
> Hm, that would introduce some difficulties due to the ability of records
> to directly contain 1-N relationships:
> Foo: foo
> Bar: bar
> Bar: baz
> Foo: another foo
> Bar: another bar
> Bar: zzz
> How would you sort that?  Alternatively you can use several calls to
> recsel with several -S.

You're right it's too ambigous.
Alternatively ... Oh no, how I didn't think about this multiple recsel -S,
it's a very suitable and good solution !


reply via email to

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