# use the find command to select only directories(-type d), in the current directory only(-maxdepth 1); # and substitute all spaces for underscores globally(/g). find ./ -type d -maxdepth 1 | rename -v 's/\s/_/g'
# use the find command to select only directories(-type d), in the current directory only(-maxdepth 1); # and substitute all spaces for underscores globally(/g). find ./ -type d -maxdepth 1 | rename -v 's/\s/_/g'