摘要: 建立新文件夹的Bash脚本,若文件夹存在,则跳过。代码放到脚本里面运行,还是很方便的。 #!/bin/bash dire="/home/bk/tmdown" if [ -d "$dire" ] ; then ech...
建立新文件夹的Bash脚本,若文件夹存在,则跳过。代码放到脚本里面运行,还是很方便的。
#!/bin/bash dire="/home/bk/tmdown" if [ -d "$dire" ] ; then echo "Directory Exists!" else mkdir "$dire"fi