⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testfrp.pl

📁 无线个域网(WPAN)就是在个人周围空间形成的无线网络
💻 PL
字号:
#!/usr/bin/perl -wuse strict 'refs';use strict 'subs';if ($#ARGV != 2) {  &usage;  exit;}sub usage {  print STDERR " usage: $0 <pattern> <probability> <time>\n";  exit;}my $p = $ARGV[1];my @a = <$ARGV[0]*>;my $time = $ARGV[2] - 10;my $frp = sqrt(1.5)/(0.040*sqrt($p));print STDERR "frp = $frp \n";foreach $file (@a) {  my ($pre1, $pre2, $x) = split(/-/,$file);    print STDERR "Doing $file \n";    my $command = "awk \'{if (\$4==1) { if (\$2==50) start = \$6; if(\$2==$time) print $x, (\$6-start)/\(($time-50)*1000*$frp\)}}\' $file";# print "$command", "\n"; system($command);  }  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -