Cool stuff for removing space in your file and folders names.This command will remove a whitespace and change it to underscore character “_” . Open your terminal. Changes path to your working folders. Caution, this command will affect all of your files and folders recursively. Then do this command :
a. Remove spaces in current folders:
user@machine~>rename -v 's/\ /\_/g' *
b. Remove spaces in all files and one sub folder:
user@machine~>rename -v 's/\ /\_/g' */*
note:
* -> in current folders only (ex : folder1)
*/* -> in current and sub folders (ex: folder1/folder2)
*/*/* -> in current, sub folders, sub folders (ex: folder1/folder2/folder3)
Just simply changes */* with your folder depth needs.


