uptime | sed -e 's#^\(.*\) average: \(.*\), \(.*\), \(.*\)$#\2#' much simpler On 20.04.2015 09:40, Shabbir abbasi wrote: > $cpuload = `uptime |awk -F 'load average:' ' {print \$2}'| awk -F '[ > ]' ' {print \$2}' | awk '{gsub(",", "");print \$1}' `;