This question already has an answer here:
I need to make some directory of Author name. It's easy when doing them alone. I can simply
mkdir "Mario Luis Garcia"
This will create one directory named "Mario Luis Garcia"
But when trying do it massively with shell script, I failed.
for i in "Mario Luis Garcia" "etc.";
do
mkdir $i
done;
This will create 4 separate directories instead of 2.
I tried to use {}
, ()
to enclose the quoted text in. Doesn't work.
How to do that?