Page MenuHomeHEPForge

getsys.pl
No OneTemporary

getsys.pl

#!/bin/perl
$nsc = 1;
$new = 'yes';
$sc = ' ';
while ($line = <>){
chomp $line;
if($line !~ m/^\*E/){
$len = length $line;
$last = substr $line,$len-1,1;
while($last ne ';') {
$line1 = <>;
chomp $line1;
$line = $line.$line1;
$len = length $line;
$last = substr $line,$len-1,1;
}
}
else{
$new = 'yes'; $nsc++; $sc = ' ';
}
if($line =~ m/SC = /){
# print $nsc,' ',$line,"\n";
$sc = $line;
}
elsif($line =~ m/^SYS/ ||
$line =~ m/^CSYS/ ||
$line =~ m/^CORR/ ||
$line =~ m/^COND/ ||
$line =~ m/^FOLDED/ ||
$line =~ m/^APPLIED/ ||
$line =~ m/^SCALE/){
if($new eq 'yes'){print 'LEGACY ',$nsc,' ',$sc,"\n"; $new = 'no';}
print $line,"\n";
}
else{
}
}
exit(0);

File Metadata

Mime Type
text/x-perl
Expires
Sat, Dec 21, 1:04 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4022882
Default Alt Text
getsys.pl (777 B)

Event Timeline