Chinaunix首页 | 论坛 | 博客
  • 博客访问: 466540
  • 博文数量: 279
  • 博客积分: 4467
  • 博客等级: 上校
  • 技术积分: 2830
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-03 14:43
文章分类

全部博文(279)

文章存档

2013年(1)

2012年(39)

2011年(35)

2009年(29)

2008年(131)

2007年(44)

分类:

2008-06-13 13:20:24

2.       showqueuename.pl  "[inbound|outbound]" "%asn%"
usage: showqueuename.pl "inbound" "%grd%"
Description: show the full tables name that match the criteria
return:
inbound_xf_toposgrd


#!/usr/bin/perl
my $pre=$ARGV[0];
$_=$ARGV[1];
s/^.//s;
chop;
$asn=$_;
open FILE,"$ws2/statuscheck.txt" or die "can't open file:$!\n";
print "return:\n";
foreach(){
if ($_=~/$asn/ && $_=~/$pre/ && $_=~/top/){
print "$_\n";

}
   }

阅读(140) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~