Skip to content

Instantly share code, notes, and snippets.

@standage
Created October 10, 2013 04:15
Show Gist options
  • Select an option

  • Save standage/6912962 to your computer and use it in GitHub Desktop.

Select an option

Save standage/6912962 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
my %mapping;
while(<STDIN>)
{
print;
chomp;
my($tsaid, @vals) = split(/,/);
$mapping{ $tsaid } = 1;
}
for my $i(1..209675)
{
my $id = $i;
$id = "0" . $id while(length($id) < 6);
my $label = "PdomTSAr1.1-$id";
print("$label,0,0,0,0,0,0,0,0,0,0,0,0\n") unless($mapping{$label});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment