我需要在Windows批处理文件中实现的代码是这样的(它目前在Perl中):
while(<file>)
{
if($_ =~ m/xxxx/)
{
print OUT "xxxx is found";
}
elsif($_ =~ m/yyyy/)
{
next;
}
else
{
($a,$b) = split(/:/,$_);
$array1[$count] = $a;
$array2[$count] = $b;
$count++;
}
}
Run Code Online (Sandbox Code Playgroud)
我的问题是:
感谢您的关注.如果您知道答案,或者有任何关于如何找到答案的想法/线索,请分享.
编辑:我在Windows工作.我只能使用Windows默认提供的任何内容,这意味着我无法使用Unix实用程序.
batch-file ×1