Thanks for contributing. I mean that earnestly.
Please forgive my one small Unix gripe, however. There is no need to pipe grep output to awk. awk will do it all.
me@mybox:~/sandbox $ cat data.txt bob 21 xyz sam 8 uuu bob 90 fff sue 12 qaz bob 99 har me@mybox:~/sandbox $ grep bob data.txt | head -1 | awk '{print $2}' 21 me@mybox:~/sandbox $ awk '/bob/ {print $2; exit}' data.txt 21
I was referring to this line of yours:
$lastValidBackupTime=`/usr/openv/netbackup/bin/admincmd/bpcatlist -cli +ent $client 2>&1 | grep $client | head -n1 | awk '{print $2}'`;
In reply to Re: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
by jffry
in thread Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
by bpoag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |