#!/bin/sh if [ "x$1" = "x" ]; then POS=1 else POS=$1 fi cut -d' ' -f$POS /proc/loadavg