2020年8月21日

100个Shell脚本—【脚本6】拷贝目录

摘要: 【脚本6】拷贝目录 编写shell脚本,把/root/目录下的所有目录(只需要一级)拷贝到/tmp/目录下: 一、脚本 #!/bin/bash cd /root list=(`ls`) for i in ${list[@]} do if [-d $i] then cp -r $i /tmp/ fi 阅读全文

posted @ 2020-08-21 00:50 渴望飞翔的xian鱼 阅读(1077) 评论(0) 推荐(0) 编辑

导航