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?
-p
flag denotes ignore errors and creates dirs as needed. From help:-p, --parents no error if existing, make parent directories as needed
– Simply_Me Aug 10 '14 at 05:35--
. Yes, may be confusing, I'll sinplify. – Volker Siegel Aug 10 '14 at 05:38