I want to use the rename command to change the names of multiple folders, not files. I need an example of how to rename \test 1\ \test 2\ \test 3\ to \1\ \2\ \3\
You can do this:
rename 's/test\ (.*)/$1/' *