#!/bin/sh set `date` x=$6 x=`expr $x - 2000` y=$2 if [ $y == "Jan" ] then y="1" elif [ $y == "Mar" ] then y="3" elif [ $y == "May" ] then y="5" elif [ $y == "Jul" ] then y="7" elif [ $y == "Sep" ] then y="9" elif [ $y == "Nov" ] then y="11" fi echo $x-$y-$3 $1