I wrote: > OOzy Pal wrote: > > elif ["$1"=='r'] > > Make that: > > elif [ "$1" == "r" ] Actually that should have been: elif [ "$1" = "r" ] Obviously I was too much thinking C instead of bash :) Nils