diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-07 10:15:56 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-07 10:15:56 -0700 |
commit | 153565461b93b1c2c903499a031a562adc943a57 (patch) | |
tree | a95ee641e0a6754ee5dc1480a34e72dd0854b32f /lib | |
parent | 86a26cc48dc789f11ff389677618d29a8677d60e (diff) | |
download | dotfiles-153565461b93b1c2c903499a031a562adc943a57.tar.gz |
lsumm
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/aid/arizona/mmg/lsumm | 13 |
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; +} |