Files
sysconfig/nuance/tools/convert_summary_for_excel.pl
luk 9742f6dab2 refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名
改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为
nuance,并同步更新脚本内部引用与 README 路径。

Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
2026-08-25 15:11:50 +08:00

22 lines
338 B
Perl

open(SUM, "$ARGV[0]");
open(EXCEL, ">". "$ARGV[0].excel");
if ($ARGV[0] eq '')
{
print "Converting summary file $ARGV[0] to excel format.\n";
print "Usage: perl $0 SUMMARY_FILE\n";
exit;
}
while(<SUM>)
{
chomp($_);
$_ =~ s/^ +//g;
$_ =~ s/ +$//g;
$_ =~ s/ +/ /g;
$_ =~ s/ /\t/g;
$_ =~ s/%//g;
print EXCEL $_."\n";
}