shell record

来源:互联网 发布:田井中彩智 知乎 编辑:程序博客网 时间:2024/05/16 06:33
#!/bin/bashfor i in `find ./cluster/* -type d`docount=${i##*/}echo $countecho -e '\n'for j in `find $i -type f`do name=${j##*.}echo $nameecho -e '\n'cp $j "./one/$count.$name"echo $jecho -e '\n'breakdonedone

原创粉丝点击