genref.pl
来自「radius server在linux下的源码」· PL 代码 · 共 18 行
PL
18 行
#!/usr/bin/perlforeach $file (@ARGV) { open FILE, "<$file" || die "Error opening $file: $!\n"; $ref = $file; $ref =~ s/\..*//g; while (<FILE>) { next if (!/^(\d+\.)+\s+([a-zA-Z]+-)+[a-zA-Z]/); chop; split; print $ref, "\t", $_[1], "\n"; } close FILE;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?