windows-nt/Source/XPSP1/NT/multimedia/danim/tools/x86/utils/trunc.bat
2020-09-26 16:20:57 +08:00

20 lines
241 B
Batchfile

@rem = '-*- Mode: Perl -*-
@goto endofperl
';
$maxlen = 256;
while (<ARGV>) {
chop;
if (length($_) > $maxlen) {
$_ = substr($_,0,$maxlen);
}
print "$_\n";
}
__END__
:endofperl
@perl %0 %1 %2 %3 %4 %5 %6 %7 %8 %9