mkdir [-m u=rws,g=rx,o=rx | --mode=mmm]
[-p |--parents] [-v | --verbose] [-Z]
dir[/dir[…]]
--mode |
if [ -e $1 ]; then ls -ld $1 ; exit 1; fi # dont bother telling him, just show it if [ -e $1 ]; then echo \-\- $1 exists as a file ; ls -l $1;exit 2 ;fi mkdir $1 if [ $? -ne 0 ]; then echo " - stink! didn\'t work" ; ls -ld newdir ; exit 2 ; fi ls -ld newdir # need option to stay in newely created directory which is ?? cd newdir