summaryrefslogtreecommitdiff
path: root/Tools/schnitt/schnitt6.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/schnitt/schnitt6.pl')
-rwxr-xr-xTools/schnitt/schnitt6.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/Tools/schnitt/schnitt6.pl b/Tools/schnitt/schnitt6.pl
new file mode 100755
index 0000000..92d9eb4
--- /dev/null
+++ b/Tools/schnitt/schnitt6.pl
@@ -0,0 +1,30 @@
+#!/usr/bin/perl
+
+open (FI,"a");
+
+while (<FI>)
+{
+ open (SCH,"/usr/local/bin/my/schnitt5.pl $_|");
+ $files = <SCH>;
+ chomp $files;
+ ($a,$b) = split (/\s/,$files);
+ $files[$a] = 1;
+ $files[$b] = 1;
+ close (SCH);
+}
+
+while (<0*.vdr>)
+{
+ $_ =~ /\d(\d\d)\.vdr/;
+ if ($files[$1])
+ {
+ print "Keeping $1\n";
+ }
+ else
+ {
+ print "Deleting $_\n";
+ unlink $_;
+ }
+}
+
+close (FI);