replace space in the filenam in linux using mv

0 comments
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

Gathering requirements

0 comments