码迷,mamicode.com
首页 > 系统相关 > 详细

shell 批量替换文本中的内容

时间:2015-07-14 20:44:54      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:批量替换文本

批量替换脚本文件中的目录/proc,为/etc/init.d

[root@master course_04]# more test.sh 
#!/bin/bash
DIR=/proc
aa=`ls $DIR`
echo $aa

技术分享

技术分享

验证是否全部修改完成

技术分享

本文出自 “龙尤在飞” 博客,请务必保留此出处http://2493919.blog.51cto.com/2483919/1674094

shell 批量替换文本中的内容

标签:批量替换文本

原文地址:http://2493919.blog.51cto.com/2483919/1674094

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!