From: Hustert Klaus-CKH035 (Klaus.Hustert@motorola.com)
Date: Mon Aug 18 2003 - 08:58:05 EDT
Hi there,
I have the following output,
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
BE0001 10 0 06/19/2003 23:32 N/A hcart 0 0
0 N/A N/A FROZEN
BE0002 11 2 06/17/2003 04:01 06/17/2003 04:01 hcart 121556 0
MPX 09/23/2003 04:01 N/A
BE0003 10 1040 06/21/2003 20:18 06/24/2003 06:14 hcart 346153387 0
MPX 08/26/2003 06:14 N/A FULL
and like to have only the id's with status FROZEN. How to call awk??
I tried the following:
bash-2.03# /usr/openv/netbackup/bin/admincmd/bpmedialist | awk '{if(NR > 2 && $MEDIA == "BE" && $STATUS == "FROZEN")
print $0
}' MEDIA="BE" STATUS="FROZEN"
But it seems that the lines are 2 separated lines.
Any hints?
Thanks,
Klaus
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:32 EDT