#!/bin/sh if [ $# -ne 1 ]; then echo "usage: myinc number" >& 2 exit 1 fi i=`echo "$1"+1 | bc` echo $i