You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
285 B

  1. #!/usr/bin/perl
  2. # split the direct output of the PIC into separate calibration files
  3. $next=0;
  4. while(<>)
  5. {
  6. next if (1 .. /3ADC/);
  7. if (/^---/ or !$next) {
  8. close OUT if $next;
  9. $next++;
  10. open(OUT, ">calib-$next");
  11. }
  12. s/\r\n/\n/;
  13. print OUT if /^[0-9]+/;
  14. }
  15. close OUT;