########### Following portion of code checks all AU extension files ########### and then converts them into UL extension file. echo "Enter complete path of directory to be processed." read direct echo $direct ls -1 ./$direct/ > ./$direct/aulist cd $direct #pwd let track1=2 let noofaufiles=0 noofaufiles=`wc -l aulist | tr -s " " | cut -f 2 -d " "` noofaufiles=`expr $noofaufiles + 0` #echo "No. of files=$noofaufiles" while [ $track1 -le $noofaufiles ] do aufile=`head -$track1 aulist | tail -1` #echo $aufile let track1=track1+1 #echo "Track1=$track1" echo $aufile > tempaufile ausource=`cat tempaufile` #echo "ausource="$ausource wcount=`wc -c tempaufile | tr -s " " | cut -f 2 -d " "` wcount=`expr $wcount + 0` #echo "Wcount=$wcount" excount=`expr $wcount - 2` #echo "Excount=$excount" prename2=`cat tempaufile | cut -c $excount-$wcount` #echo "Prename2=$prename2" wcount=`expr $wcount - 3` #echo "New wcount=$wcount" prename1=`cat tempaufile | cut -c 1-$wcount` #echo "prename1=$prename1" uldest=${prename1}ul #echo $uldest /tftpboot/sox -V -r 8000 -U -b $ausource -t raw /tftpboot/$direct/$uldest done ###********************************************************##