mkdtouch.sh (316B)
1 #!/bin/sh 2 # description: mkdir $1; touch ${2, ...} 3 # arguments: $1 = dir path to make; $2, ... = filenames to touch 4 5 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then 6 echo "Usage: mkdtouch DIRECTORY FILEPATH..." 7 echo "" 8 echo "mkdir DIRECTORY and touch listed FILEPATH... into it" 9 exit 10 fi 11 12 mkdir $1 13 shift 14 touch $@ 15