Blame view
tools/SIGMUND/bin/toSegEmiss.pl
344 Bytes
e6be5137b reinitialized pro... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/usr/bin/perl if($#ARGV != 0){ print("usage : cat <texte_lia_seg.seg> | ./toSegEmiss <fichierEmiss.seg>"); exit(1); } open(SEG, ">$ARGV[0]"); while(<STDIN>){ $line = $_; chomp($line); if($line =~ m/#.*/){ @tempo = split(/#/, $line); print SEG $tempo[1]." "; } elsif($line =~ m/==*/){ print SEG ($line)." "; } } close(SEG); |