#!/bin/bash if [ -z "$1" ] then echo I need one argument: period, in seconds. exit fi while true do cut -d " " -f 1 < /proc/loadavg sleep $1 done