replace space in the filenam in linux using mv

To replace the space in the middle of the filename in linux you can use "mv"
for f in *; do file=$(echo $f | tr A-Z a-z | tr ' ' _) [ ! -f $file ] && mv "$f" $file done

0 comments :: replace space in the filenam in linux using mv