I need to make some directory of Author name.It's easy when doing them alone. I can simplymkdir Mario Luis GarciaThis will create one directory named Mario Luis GarciaBut 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?
How to assign words with spaces as a whole name to variable in shell script?
shell;shell script
You need to quote the variable expansion in double quotes:mkdir $i(Using single quotes '$i' would create a directory named $i)If the names can start with -, you should also add -- after the last option argument, indicating that all other arguments are not options, which means in this case they are  directory names:mkdir -- $iOr, with option -v (verbose) for example:mkdir -v -- $i