Create Directory Structure (Job Folder)


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/sh
  2.  
  3. <<COMMENT1
  4. This script can run from its saved location as ./scriptname.sh foldername
  5. it will create a folder structure based off of foldername in the Users Home
  6. directory, adjust to suit your needs
  7.  
  8. also remember to chmod u+x
  9. COMMENT1
  10.  
  11. mkdir -p ~/$1/copy
  12. mkdir -p ~/$1/layers
  13. mkdir -p ~/$1/stock
  14.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.