[Info-vax] grep a nice one
Wilm Boerhout
wboerhout.no at spam.gmail.com
Fri Jan 29 02:48:50 EST 2010
CY mentioned on 29-1-2010 7:32:
> So, I will (after some playing around with DCL and search) dl the grep
> because I dont get this in a nice way in DCL:
> BIOS_VERSION=`dmidecode -t 0|grep Version|head -1| awk '{print $NF}'`
>
> When trying in vms I get starting with
>
> BIOS Version 03.02 Manufacturer
> hp
>
> from
>
> $anal/sys
> set output test.lis/single
> clue conf
> sho summ
> exit
> $ grep :== search SYS$PIPE
> $ pipe type test.lis | grep "Bios version"
>
> just wanting BIOS_VERSION="03.02"
>
> just thinking it might not be the bios version I really want, hmm..
> hope its the blades version anyway...
> Lots of stuff is reading something like
>
> $ HW_NAME = F$GETSYI ("HW_NAME")
>
> Well, Ill go look for a IA64 version of grep.
>
> Thanks for the inputs.
Sorry to have led you on CY, but
$ grep :== search SYS$PIPE
$ pipe type test.lis | grep "Bios version"
is best replaced by simple
$ search test.lis "Bios version"
use "pipe" only when the command is something other than type, such as
$ pipe @sda | grep lookforthis
where sda.com contains your
$anal/sys
set output /single
clue conf
sho summ
exit
/Wilm
More information about the Info-vax
mailing list