[ From: "Ian D. Bjorhovde" <[EMAIL PROTECTED]> ] Awk is good at this:
db2 list db directory | \
awk '{ if (/Database name/) { db = $4 }; if ($1 == "Directory" && $5 == "Indirect") {
print db } }'
-
::: When replying to the list, please use 'Reply-All' and make sure
::: a copy goes to the list ([EMAIL PROTECTED]).
*** To unsubscribe, send 'unsubscribe' to [EMAIL PROTECTED]
*** For more information, check http://www.db2eug.uni.cc
