文章分类 - 运维中待解决问题集
摘要:研究下centos6.6的日志回滚!!!!========>[root@localhost mysql3306]# ls /etc/cron.daily/cups logrotate makewhatis.cron mlocate.cron prelink readahead.cron ...
阅读全文
摘要:如何解决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...
阅读全文
摘要: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...
阅读全文
摘要:如何删除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...
阅读全文