luobotou
全部博文(22)
2011年(1)
2009年(9)
2008年(12)
yshisx
重楼君
zhejiang
LeoDo5
ultramod
phoenixc
CU官方博
xinxin12
雷博弈
分类:
2009-04-01 22:10:56
#cat conf.log
Apr 1 16:23:45 172.16.2.2 2009 Quidway SHELL/6/CLI:show running'
目标:获取日志级别
分析脚本:
#!/usr/bin/perl$str = `cat conf.log`;chomp $str;if($str =~/\/(\d)\//){print "The levle is ".$1."\n";}
上一篇:VRP和ROS的loghost配置
下一篇:【zt】程序设计语言正交特性的一点思考
登录 注册