The following script, which I found here after an hour of googling, can be used to remove spaces and replacing them with any character (like '_') from file names
$ for f in *; do
> file=$(echo $f | tr ' ' _)
> [ ! -f $file ] && mv "$f" $file
> done
$
Subscribe to:
Post Comments (Atom)


0 comments:
Post a Comment