Skip to content

Instantly share code, notes, and snippets.

@cjac
Created October 17, 2022 18:01
Show Gist options
  • Save cjac/7ccd25a5f18d80e410ef2c02f17a9c62 to your computer and use it in GitHub Desktop.
Save cjac/7ccd25a5f18d80e410ef2c02f17a9c62 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -w
use strict;
my $keyfile = <STDIN>;
my $separator = <STDIN>;
my @key;
{
local $/ = "\n\n";
@key = <STDIN>;
}
foreach my $key (@key){
my @line = split($/,$key);
my $id = $line[1];
$id =~ s/^\s+//;
print $id,$/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment