.bashrc
changeset 999 fb93b077af25
parent 998 1b3bc0a2de41
child 1002 a9073ca0921b
equal deleted inserted replaced
998:1b3bc0a2de41 999:fb93b077af25
   331 
   331 
   332 myvbox-stop-all() {
   332 myvbox-stop-all() {
   333   VBoxManage list runningvms |& while read line; do
   333   VBoxManage list runningvms |& while read line; do
   334     # Parse UUID in: "Name with spaces" {UUID}
   334     # Parse UUID in: "Name with spaces" {UUID}
   335     line=${line##*'{'}
   335     line=${line##*'{'}
   336     line=${line%'}'*}
   336     local uuid=${line%'}'*}
   337     VBoxManage controlvm "$uuid" acpipowerbutton
   337     VBoxManage controlvm "$uuid" acpipowerbutton
   338   done
   338   done
   339 }
   339 }