I have a set of files, all of them nnn.MP4.mov. How could I rename them so that it is just nnn.mov?
nnn.MP4.mov
nnn.mov
for i in `ls *png`;do echo mv $i "${i%%.*}"@xx."${i##*.}";done