This question already has an answer here:
I need to rename only directories and not files, and I want to do it with
Is there any way to do it?
It says nothing in the manual about differentiating between directories and files.
This command changes everything, no matter directory or files:
rename 's/ /\n/g' *
This command solved my problem:
rename 's/ /\n/g' */
I need a slash behind it.