scripts

My personal collection of scripts
git clone git://src.gearsix.net/scriptsscripts.zip
Log | Files | Refs | Atom | README | LICENSE

mkdtouch.sh (raw) (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