Skip to content

Instantly share code, notes, and snippets.

@enjoylife
Created February 10, 2014 21:21
Show Gist options
  • Save enjoylife/8924431 to your computer and use it in GitHub Desktop.
Save enjoylife/8924431 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use File::Find;
find({ wanted => \&process_file, no_chdir => 1 }, "NZ_Original");
sub process_file {
my $F = $File::Find::name;
if ($F =~ /V2A$/ ) {
print "$F\n";
open(FILE, "$_") || die "File not found";
my @lines = <FILE>;
close(FILE);
$line = $lines[13];
@pieces = split ( /\s+/, $line );
$acc = $pieces[2];
if($acc >= 50){
print "$F\n";
}
print $acc;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment