摘要:
shell读取abc.txt文件,每行是一个文件夹名,文件夹名字长32个字符, 因为abc.txt读取到每行都有\r和其他字符结尾,故用line=${line:0:32}只取到文件名。 该脚本实现从html目录挑选出名称在abc.txt里文件夹到out目录 #!/bin/bash while rea 阅读全文
摘要:
功能:把/d/tmp1/里的tmp2及其子目录ttt和文件abc.html拷贝到目录/d/tmp/ 实现代码 #!/bin/bashfor subm in `ls /d/tmp1`; do echo $subm for file in `ls /d/tmp1/$subm`;do echo $file 阅读全文