From ac4dcb64a8f6c07dfe50e9005dc4246f21ebf84e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 6 Sep 2014 00:39:14 -0400 Subject: Split hackers.yml into users/#{uid}.yml --- bin/uid-map | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/uid-map (limited to 'bin/uid-map') diff --git a/bin/uid-map b/bin/uid-map new file mode 100755 index 0000000..90dd472 --- /dev/null +++ b/bin/uid-map @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby +# Usage: uid-map + +require 'yaml' + +users = Dir.glob("users/*.yml").each do |filename| + uid = filename.sub(/users\/([0-9]*)\.yml/, "\\1").to_i + user = YAML::load(open(filename)) + puts "#{uid}:#{user["username"]}" +end -- cgit v1.2.3-54-g00ecf