aboutsummaryrefslogtreecommitdiffstats
path: root/annex_discovery.pl
blob: b645dc62b71da28a7984895be9386ed86916e46b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl

use strict;
use warnings;
use feature q(say);

open my $fh, "<", "/home/lemon/Documents/find_these_paths.txt" or die "Cannot open file";
while (<$fh>) {
    if ($_ =~ q[^/home/lemon/annex/(.*) \(1 copy\)]) {
        my $path = quotemeta($1);
        my $out = `git annex whereis $path`;
        say $out;
    }
}