Advertisement
Guest User

Create Project

a guest
Sep 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. if [ ! $# == 2 ]
  4. then
  5.     scriptname=`basename "$0"`
  6.     echo "usage: $scriptname name path"
  7.     exit 1 # Exit
  8. fi
  9.  
  10. name=$1
  11. path=$2
  12.  
  13. mkdir -p $path/$name/code/{analysis,scripts,src}
  14. mkdir -p $path/$name/data/{raw,processed}
  15. mkdir -p $path/$name/output/{reports,tables,figures}
  16. find $path/$name -type d -exec touch {}/README.md \;
  17.  
  18. echo -e "Project $name created at $path.\n"
  19.  
  20. tree $path/$name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement