On Thu, Sep 18, 2003 at 08:31:35PM +1000, Martin Michlmayr wrote: > > > -MUTTVERSION="`mutt -v | head -1 | awk '{print $2}'`" > > > +MUTTVERSION="`mutt -v | head -n 1 | awk '{print $2}'`" > > +MUTTVERSION="`mutt -v | sed 1q | awk '{print $2}'`" I think, Thomas' solution is the cleanest one. Why should you want to use two tools when it can be done by one that you use anyway? MUTTVERSION="`mutt -v | awk '{print $2; exit}'`" Robert -- Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:rschiele@xxxxxxxxxxxxxxx
Attachment:
pgpMK7MUmOjNS.pgp
Description: PGP signature