星空网 > 软件开发 > 操作系统

shell脚本学习指南

  一、UNIX各个工具所支持的正则表达式

 

shell脚本学习指南images/loading.gif' data-original="http://images0.cnblogs.com/blog2015/660651/201508/221503493946735.png" width="757" height="183" />

二、使用sed在某一目录下建立一份目录备份:

  find /home/foo/ -type d -print |  #找出/home/foo/目录下所有目录文件

  sed 's;/home/foo/;/home/bar/;' |  #替换/home/foo/目录为/home/bar/

  sed 's/^/mkdir /' |          #插入mkdir 

  sh -x                #执行mkdir命令




原标题:shell脚本学习指南

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流