You are on page 1of 1

echo "chdev -l 'rmt$name' -a new_name='VTL$drivename' ,$driveserial" echo "chdev -l 'rmt$name' -a new_name='VTL$drivename'" >>newpatcmds done < serials chmod 777

newpatcmds while read i do drivename=`echo $i|awk '{print $1}'` driveserial=`echo $i|awk '{print $2}'` #echo $drivename #echo $driveserial rmtna=`cat test12|grep $driveserial` name=`echo $rmtna|awk '{print $1}'`