--- /dev/null
+#!/Users/kilian/perl5/perlbrew/perls/perl-5.24.1/bin/perl
+use strict;
+use File::Basename;
+use FindBin qw($RealBin);
+
+my $inyear = "2019";
+my $outyear = "2020";
+my $inpath = dirname($RealBin).'/data/coloradio/aral/playlists/default/'.$inyear;
+my $outpath = dirname($RealBin).'/data/coloradio/aral/playlists/default/'.$outyear;
+print "$inpath => $outpath\n";
+opendir(INP,$inpath);
+while (my $m3u = readdir(INP)){
+ if ($m3u =~ /\.m3u$/){
+ my @files = ();
+ open(M3U,$inpath.'/'.$m3u);
+ @files = <M3U>;
+ close(M3U);
+ print $m3u."\n";
+ my $newfile = $m3u;
+ $newfile =~ s/$inyear/$outyear/;
+ open(OUT,">".$outpath.'/'.$newfile);
+ @files = reverse(@files);
+ print OUT join("\n",@files);
+ close(OUT);
+ }
+}
+closedir(INP);
\ No newline at end of file