Skip to content

Instantly share code, notes, and snippets.

@hectorgool
Created November 3, 2016 21:36
Show Gist options
  • Select an option

  • Save hectorgool/64c76c2b42d8a5efd6687e32f51a8efa to your computer and use it in GitHub Desktop.

Select an option

Save hectorgool/64c76c2b42d8a5efd6687e32f51a8efa to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
system("clear");
open( F, "id_attachment.txt" ) || die "Error al abrir archivo";
@base = <F>;
$contador = 0;
foreach ( @base ) {
@campos = split(/;/, $_);
$id = $campos[0];
$attachment = $campos[1];
print "$attachment";
}
close F;
print "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment