X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fallmach;h=6bbddde07b47bd3ff185d70dc09699c8c37edbfe;hb=2db463a09a9f519492322d5e82f0c283b40bfef8;hp=23ed8e585c10aa2af75f97db6bb81c0e93079e75;hpb=f20aa5e864d832884da9922c12e539dd56c8de58;p=clearscm.git diff --git a/bin/allmach b/bin/allmach index 23ed8e5..6bbddde 100755 --- a/bin/allmach +++ b/bin/allmach @@ -64,11 +64,11 @@ function trap_intr { # Column 4 ClearCase Version (if applicable) # Column 5 Owner (if known) # Column 6 Usage (if known) -#oldIFS=$IFS -#IFS=":" +oldIFS=$IFS +IFS=":" declare -i nbr_of_machines=0 -#sed -e "/^#/d" $machines | -while read machine; do +IFS=: +while read machine model os cc owner usage; do machines[nbr_of_machines]=$machine let nbr_of_machines=nbr_of_machines+1 done < <(grep -v ^# $machines) @@ -86,7 +86,7 @@ while [ $i -lt $nbr_of_machines ]; do export currmachine=${machines[i]} # Execute command. Note if no command is given then the effect is to # ssh to each machine. - echo -e "${CYAN}${machines[i]}$NORMAL\c" + echo -e "${B_AQUA}${machines[i]}$NORMAL\c" echo -e ":$cmd" if [ $# -gt 0 ]; then if [ "$root_ssh" = "true" ]; then