Unix create multiple files under directories
Here is how you create multiple sub directories:
$ mkdir -p project/{images,pages}
The p option is to also create the "public" directory.
Using a similar syntax as the above you can also create files under directories:
$ touch project/{index.html,pages/pages.html,pages/new.html}
This is the structure of your folder project now:
project/
- index.html
images/
pages/
- index.html
- new.html
Happy Hacking!
Written by Mariz Melo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#