summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-09-07 10:15:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-09-07 10:15:56 -0700
commit153565461b93b1c2c903499a031a562adc943a57 (patch)
treea95ee641e0a6754ee5dc1480a34e72dd0854b32f /lib
parent86a26cc48dc789f11ff389677618d29a8677d60e (diff)
downloaddotfiles-153565461b93b1c2c903499a031a562adc943a57.tar.gz
lsumm
Diffstat (limited to 'lib')
-rwxr-xr-xlib/aid/arizona/mmg/lsumm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/aid/arizona/mmg/lsumm b/lib/aid/arizona/mmg/lsumm
new file mode 100755
index 00000000..7fe7ab82
--- /dev/null
+++ b/lib/aid/arizona/mmg/lsumm
@@ -0,0 +1,13 @@
+#!/usr/bin/perl -wl
+
+open my $fh, '<', '../Lecture summary.txt';
+chomp(my @summary = <$fh>);
+for (glob "*") {
+ /^(.+)\.([a-z]+)$/;
+ next if $2 eq 'txt';
+ my $txt = "$1.txt";
+ open my $fh, '>', $txt;
+ print $fh $1;
+ print $fh "";
+ print $fh $_ for @summary;
+}