singlevsmulti.pl
来自「跑leach需要的」· PL 代码 · 共 34 行
PL
34 行
#!/usr/bin/perl -wuse strict 'refs';use strict 'subs';if ($#ARGV < 0) { &usage; exit;}sub usage { print STDERR " usage: $0 <filepattern> \n"; exit;}my @a = <$ARGV[0]*>;foreach $file (@a) {my ($pre, $suffix) = split(/-/,$file);print STDERR "Doing $file \n"; my $command2 = "grep \'1:1-3\' $file | awk \'{if (\$1==\"1:1-3-identified\") idCount++; count++} END {print $suffix*1000, idCount/count, idCount, count}\' >> data-s"; system($command2); my $command3 = "grep \'3:5\' $file | awk \'{if (\$1==\"3:5-identified\") idCount++; count++} END {print $suffix*1000, idCount/count, idCount, count}\' >> data-m";system($command3); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?