G'day all.. <Sigh> Check out this let x=`echo $i | wc -c`-1 y="" while [ "$y" != "/" -a "$x" -ge 0 ] ; do y=`echo $i | cut -b $x` let x-- done; let x=$x+2 j=`echo $i | cut -b $x-` vs j=`basename $i` <slaps forehead> Oh well, it was a learing experience I guess Brad