会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Resize
博客园
首页
新随笔
新文章
联系
订阅
管理
2015年9月10日
sed 命令及shell的if语句的运用实例
摘要: if [ -f /etc/syslog.conf ]; #判断文件是否存在thensystest=`sed -n '/^auth.info/p' /etc/syslog.conf`; #匹配/etc/syslog.conf文件中是否有auto.info字符串,并返回字符串,systest变量接收。i...
阅读全文
posted @ 2015-09-10 10:19 Resie
阅读(1272)
评论(0)
推荐(0)
编辑