The ruby versions are slower
[backups/.git] / scripts / list-dates.rb
diff --git a/scripts/list-dates.rb b/scripts/list-dates.rb
deleted file mode 100755 (executable)
index 18cdef9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/ruby
-
-# Make sure the record separator is zero rather than new-line
-$/ = "\0"
-
-# Create a set of backup dates
-require 'set'
-dates = SortedSet.new
-
-# Split each input record into 8 fields on spaces and grab the 7th as integer
-date_array = ARGF.map { |rec| rec.split( ' ', 8 )[6].to_i }
-
-# Merge the dates into the set
-dates.merge date_array
-
-# Output the sorted set
-puts dates.to_a