# 3WARE disk controller (by Radoslaw Bak) if type tw_cli > /dev/null ; then for C in $(tw_cli show | awk 'NR < 4 { next } { print $1 }'); do tw_cli /$C show unitstatus | egrep 'u[0-9]' | sed "s/^/$C\//" done fi