#!/l/local/bin/perl
# take a stream of (\d+[^<]+)+ and
# send to STDOUT the appropriate entries, assuming
# that they are $ARGV[0] preficed in SysName
undef $/;
if ($ARGV[0]) { $path = shift(@ARGV); }
while (<>) {
@items = grep(!/^(\s*|SSize|Sync)$/, split(/<\/?(SSize|Sync)>/, $_));
while (@items) {
print "$items[1]$items[1]\n";
print " $path$items[1].rgn\n";
print " " . time . "\n";
print " 158303\n";
print "" . ($items[0] * 2) . "pairs\n\n";
shift(@items); shift(@items);
}
}