windows-nt/Source/XPSP1/NT/multimedia/danim/tools/x86/utils/trunc.bat

20 lines
241 B
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@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