Add ruby script to list 'interesting' dvds by date. Also changed order of user and...
authorCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Thu, 20 Oct 2005 15:43:14 +0000 (09:43 -0600)
committerCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Thu, 20 Oct 2005 15:43:14 +0000 (09:43 -0600)
scripts/list-dates.rb [new file with mode: 0755]

diff --git a/scripts/list-dates.rb b/scripts/list-dates.rb
new file mode 100755 (executable)
index 0000000..b8a5c50
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/ruby
+
+require 'set'
+
+dates = Set.new
+
+ARGF.each( "\0" ) do |line|
+  fields = line.split ' ', 8
+  dates.add fields[6]
+end
+
+dates.each do |date|
+  puts date
+end