in reply to Parsing command line input from STDIN

If you're field names are going to stay static then this should do the trick
lvdisplay /dev/vg00/lvol3 | \ perl -ne 'print if /LV (Name|Status)|Mirror/'
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Parsing command line input from STDIN
by TStanley (Canon) on Dec 19, 2003 at 14:08 UTC
    That did the trick. Thanks for the help. :-D

    TStanley
    --------
    The only thing necessary for the triumph of evil is for good men to do nothing -- Edmund Burke