in reply to Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
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}'`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
by jwkrahn (Abbot) on Mar 19, 2010 at 15:28 UTC | |
by jffry (Hermit) on Mar 19, 2010 at 16:11 UTC | |
by bpoag (Monk) on Mar 19, 2010 at 18:20 UTC | |
|
Re^2: Failboat -- An Emotionally Disturbed Tool For Checking NetBackup Client Coverage
by Anonymous Monk on Mar 19, 2010 at 18:16 UTC |