diff options
author | Matthew Lemon <y@yulqen.org> | 2023-08-14 15:41:45 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-08-14 15:41:45 +0100 |
commit | a164aafde81e9bfdc548d2fa57b3f73194d99f87 (patch) | |
tree | 39b95cd9f0cb15f6ad0de1be305fc2c3e5d50914 /annex_discovery.pl | |
parent | a359ee02e20408043617b9a0c30ae7d9386916c2 (diff) | |
parent | 34af3f14728ef5a3565cd2f6fec46d6bf9c3a20f (diff) |
Merge branch 'master' of github.com:yulqen/perlscripts
Diffstat (limited to 'annex_discovery.pl')
-rw-r--r-- | annex_discovery.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/annex_discovery.pl b/annex_discovery.pl new file mode 100644 index 0000000..b645dc6 --- /dev/null +++ b/annex_discovery.pl @@ -0,0 +1,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; + } +} |