#!/bin/bash
# Returns CPU percentages of all machines in the cluster
# Example output: steffe3 3.5
parallel --nonall --slf /home/rock/macchine.txt top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | sed "s/^/100 - /" | bc