mkdir create multiple subdirectories at same time - Solaris

This is a discussion on mkdir create multiple subdirectories at same time - Solaris ; Hi,
How to make multiple subdirectories at one time seems not work on
solaris 10. Following command does not work:
mkdir -p /dir1/dir2/{dir3,dir4/{dir5,dir6/dir7/dir8,dir9,dir10}}
What's correct syntax?
Simon...

Re: mkdir create multiple subdirectories at same time

Simon Gao wrote:
> How to make multiple subdirectories at one time seems not work on
> solaris 10. Following command does not work:
>
> mkdir -p /dir1/dir2/{dir3,dir4/{dir5,dir6/dir7/dir8,dir9,dir10}}
>
> What's correct syntax?

It depends on your shell. It should work with bash, zsh, tcsh.
It's the shell that expands the braces, not 'mkdir'.