Monday, 25 July 2011

Unix: Rename multiple files script

cd /Oracle/archives
fList="`ls`"

for fNm in $fList do
     mv  $fNm $fNm.dat
     echo "file $fNm renamed to $fNm ."
done

No comments:

Post a Comment

Number of Visitors