* On Thu, Jul 12, 2001 at 11:31:26AM -0700, Chris Fuchs wrote:
> On Thu, Jul 12, 2001 at 11:35:59AM -0400, darren chamberlain wrote:
> > Chris Fuchs <[EMAIL PROTECTED]> said something to this effect on 
>07/11/2001:
> > > #!/usr/local/bin/perl
> > > #randsig.pl, by Don Blaheta.  Released into public domain, blah, blah, blah.
> > > # Generates a signature randomly from a single file of witty quotes which
> > > # the user maintains; the quotes can be multi-line, and are separated by
> > > # blank lines.
> > 
> > This is too much work. Try this:

Way, way too much work still. Try this:

set signature="perl -an0777F'\n\s*\n' -e 'print \$F[rand(@F)]' ~/quotes.txt|"

Of course you need a ~/quotes.txt file with empty lines as separators.

-- 
 HIPPOLYTE: Ou que d'un beau trépas la mémoire durable,
            Eternisant des jours si noblement finis,
            Prouve à tout l'univers que j'étais votre fils.
                                          (Phèdre, J-B Racine, acte 3, scène 5)

Reply via email to