Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I was just wondering whether or not this script code would properly test for the existence of a directorydir2, and if it doesn't exist, then to create it. ThanxDir1 already exists.
[ ! -d /dir1/dir2 ] && mkdir /dir1/dir2
I was just wondering whether or not this script code would properly test for the existence of a directory, and if it doesn't exist, then to create it. Thanx
[ ! -d /dir1/dir2 ] && mkdir /dir1/dir2
I was just wondering whether or not this script code would properly test for the existence of a dir2, and if it doesn't exist, then to create it. Dir1 already exists.
I was just wondering whether or not this sciptscript code would properly test for the existence of a directory, and if it doesn't exist, then to create it. Thanx
[ ! -d /dir1/dir2 ] && mkdir /dir1/dir2
[ ! -d /dir1/dir2 ] && mkdir /dir1/dir2
I was just wondering whether or not this scipt code would properly test for the existence of a directory, and if it doesn't exist, then to create it. Thanx
[ ! -d /dir1/dir2 ] && mkdir /dir1/dir2
I was just wondering whether or not this script code would properly test for the existence of a directory, and if it doesn't exist, then to create it. Thanx