Rename Multiple File



wget is a downloader software who most populer in the world, especially in opensource world. But wget doesn’t clean all of your download file from URI-escape character. This code maybe can help you :

#!/usr/bin/bash

for a in *;do
newfilename=’echo $a|sed -e’s/%20/\\/g”;
mv “@a””$newfilename”;
done

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s