aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-12-16 06:53:18 +0000
committerMatthew Lemon <matt@matthewlemon.com>2022-12-16 06:53:18 +0000
commit2a3bea6fcc6df013c06bc29805747db0e6763108 (patch)
tree55ff896069afc4f31084efd4fe455a44a77c31f5
parent3a6cbd0afc54951f71002b9ed38b0b2955ae905c (diff)
cleanup before migration
-rw-r--r--annex_discovery.pl14
-rwxr-xr-xcalendar/dayplan_revised.pl2
-rwxr-xr-xcalendar/modevent.pl2
3 files changed, 16 insertions, 2 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;
+ }
+}
diff --git a/calendar/dayplan_revised.pl b/calendar/dayplan_revised.pl
index 43e74a7..bf72ea7 100755
--- a/calendar/dayplan_revised.pl
+++ b/calendar/dayplan_revised.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Porting dayplan.ksh to Perl
use strict;
diff --git a/calendar/modevent.pl b/calendar/modevent.pl
index 38f1e02..bffb972 100755
--- a/calendar/modevent.pl
+++ b/calendar/modevent.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;