Resume all paused VMs (VirtualBox)
Background
As a user of VirtualBox, I wanted a Bash-script to resume all paused Virtual Machines.
The Script

#! /bin/bash
# last modified: Mar 2012

# get all running and paused VMs
running_vms=$(vboxmanage list runningvms | awk '{print $NF}')
for vm in $running_vms; do
    is_paused=$(VBoxManage showvminfo $vm --machinereadable | grep -c 'VMState="paused"')
    if [ $is_paused == 1 ]; then
        vboxmanage controlvm $vm resume
    fi
done