]> git.rmz.io Git - dotfiles.git/blobdiff - bin/work/parse_cwsysinfo.pl
cleaning up bin
[dotfiles.git] / bin / work / parse_cwsysinfo.pl
diff --git a/bin/work/parse_cwsysinfo.pl b/bin/work/parse_cwsysinfo.pl
new file mode 100755 (executable)
index 0000000..d47aa28
--- /dev/null
@@ -0,0 +1,60 @@
+#! /usr/bin/perl
+
+use strict;
+use warnings;
+
+foreach (@ARGV) {
+    &parse;
+}
+
+
+sub parse
+{
+    open FILE, "<:encoding(iso-8859-15)", $_ or die "Could not open '$_'";
+    my @list;
+    my $b = 0;
+    foreach (<FILE>) {
+        $b = 1 if /^Programme/;
+        next unless $b;
+        last if /^\r\n/;
+
+        next if /^Programme/;
+        next if /^Name/;
+        next if /7\-Zip/;
+        next if /Flash/;
+        next if /Citrix/;
+        next if /IrfanView/;
+        next if /\.NET/;
+        next if /Firefox/;
+        next if /Windows/;
+        next if /Hewlett/;
+        next if /Sophos/;
+        next if /Java/;
+        next if /Visual C\+\+/;
+        next if /MSXML/;
+        next if /Silverlight/;
+        next if /Update/i;
+        next if /Proof/;
+        next if /Reader/;
+        next if /Nero/;
+        next if /Internet Explorer/;
+        next if /Brows/;
+        next if /MUI/;
+        next if /MSN Site Access/;
+        next if /Address Book 7/;
+        next if /Web Platform Customizations/;
+        next if /HTML/;
+        next if /Active Directory/;
+        next if /Themes Setup/;
+        next if /NI/;
+        next if /VLC/;
+
+
+        /(.*?)\s{2,}/;
+        push(@list, $1);
+    }
+    @list = sort(@list);
+    print "$_\n";
+    print join("\n",@list);
+    print "\n\n";
+}