2006-09-08 13:53:18 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use POSIX qw(strftime);
|
|
|
|
|
|
|
|
if($ARGV[0] eq "-h"){
|
|
|
|
shift @ARGV;
|
|
|
|
$h = $ARGV[0];
|
|
|
|
shift @ARGV;
|
|
|
|
}else{
|
|
|
|
$h = $ARGV[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
$page = 0;
|
|
|
|
$now = strftime "%b %e %H:%M %Y", localtime;
|
|
|
|
|
|
|
|
@lines = <>;
|
|
|
|
for($i=0; $i<@lines; $i+=50){
|
|
|
|
print "\n\n";
|
|
|
|
++$page;
|
|
|
|
print "$now $h Page $page\n";
|
|
|
|
print "\n\n";
|
|
|
|
for($j=$i; $j<@lines && $j<$i +50; $j++){
|
2009-07-13 02:07:30 +00:00
|
|
|
$lines[$j] =~ s!//DOC.*!!;
|
2006-09-08 13:53:18 +00:00
|
|
|
print $lines[$j];
|
|
|
|
}
|
|
|
|
for(; $j<$i+50; $j++){
|
|
|
|
print "\n";
|
|
|
|
}
|
|
|
|
$sheet = "";
|
|
|
|
if($lines[$i] =~ /^([0-9][0-9])[0-9][0-9] /){
|
|
|
|
$sheet = "Sheet $1";
|
|
|
|
}
|
|
|
|
print "\n\n";
|
|
|
|
print "$sheet\n";
|
|
|
|
print "\n\n";
|
|
|
|
}
|