`
liyonghui160com
  • 浏览: 761269 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

linux拷贝文件去掉某个子目录脚本

阅读更多

 

 

linux拷贝文件去掉某个子目录 脚本

 

#!/bin/bash
to=/export/tmp/gerritcode/
for filename in `ls $to`;
do
    if [ $filename = ".git" ]||[ $filename = "myfile" ];then
        :
    else
        cp -r $filename /back
    fi
done

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics