Jan 192010

To remove invalid characters like ? & etc. in a file name, use this simple script;

touch reminvchar.sh
vim reminvchar.sh

insert the following lines of code

for i in `find . -type f`
echo $i
mv $i `echo $i |tr ? _|tr = _ |tr ‘&’ ‘_’`

save the file using ‘:wq’ and then

chmod +x reminvchar.sh

and then run the file;


 Posted by at 10:50 am

 Leave a Reply