Tuesday, March 14, 2017

Bash: mkdir to create more complicated trees

From the man page of mkdir
-p, --parents
no error if existing, make parent directories as needed


You can also use this option to create more complicated trees. Like this one.







Do that with this:
mkdir -p /tmp/A/{1,2,B/{1,2}}

No comments:

Post a Comment