You have 5 mp3 files in a directory and you are planning to rename the all .mp3 files to .ogg files. Will the following Shell script acheive your goal ? for i in ls *.mp3
; do mv $i $i.ogg done. Will the above script rename correctly and how many number of files will be present in the directory after execution of the script ?