Hello everyone,
This is a very quick question...
Part of a script that I am writing is supposed to create several directories and sub directories in these directories. The code below is working fine in a bash shell but not in a sh shell:
In my FreeBSD console, the line above creates a single {web1_com,web2_org,web3_biz,web4_co_uk} directory instead of 4.
Could anyone help me to work out the syntax issue that I am having please?
Thank you
Fred
This is a very quick question...
Part of a script that I am writing is supposed to create several directories and sub directories in these directories. The code below is working fine in a bash shell but not in a sh shell:
mkdir -p /webtest/{web1_com,web2_org,web3_biz,web4_co_uk}/{http,logs,tmp}
In my FreeBSD console, the line above creates a single {web1_com,web2_org,web3_biz,web4_co_uk} directory instead of 4.
Could anyone help me to work out the syntax issue that I am having please?
Thank you
Fred