#!/usr/bin/ruby require 'gdbm' dbfile = ARGV.shift raise "usage: #$0 dbfile [input ...]" unless dbfile GDBM.open(dbfile) {|db| for cccc in db.keys puts ["@:", cccc, "\t", db[cccc]].join end }