文章分类 -  运维中待解决问题集

摘要:研究下centos6.6的日志回滚!!!!========>[root@localhost mysql3306]# ls /etc/cron.daily/cups logrotate makewhatis.cron mlocate.cron prelink readahead.cron ... 阅读全文
posted @ 2015-07-14 17:31 arun_yh 阅读(420) 评论(0) 推荐(0) 编辑
摘要:如何解决for循环嵌套问题?i161 admin # for x in `cat tongjidisk`;do ssh $x echo -----------------------$x------------------------; ssh $x for z in a b c d e f g h... 阅读全文
posted @ 2015-07-07 11:40 arun_yh 阅读(233) 评论(0) 推荐(0) 编辑
摘要:echo -e "1\n2\n3\n4" | sed -n 'N;s/\n/ /;p'sed先读入第一行到pattern space,然后执行N命令,将第二行追加进pattern space这时pattern space里面就是1\n2,然后执行s/\n/ /,将换行符替换成空格,最后打印。echo... 阅读全文
posted @ 2015-07-06 08:18 arun_yh 阅读(3889) 评论(0) 推荐(0) 编辑
摘要:如何删除ssh映射中的重复脚本?用python?awk或sed?只要实现就可以[root@localhost company]# cat nat.cfg29003 192.168.5.170:29003 29003 192.168.5.170:2900329093 192.168.5.169:290... 阅读全文
posted @ 2015-07-05 23:30 arun_yh 阅读(347) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示