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.
|
- #!/usr/bin/perl
-
- # split the direct output of the PIC into separate calibration files
-
- $next=0;
- while(<>)
- {
- next if (1 .. /3ADC/);
- if (/^---/ or !$next) {
- close OUT if $next;
- $next++;
- open(OUT, ">calib-$next");
- }
- s/\r\n/\n/;
- print OUT if /^[0-9]+/;
- }
- close OUT;
|