dbf2/show-header.rb

require 'dbf'
require 'pp'

DBF::RecordSet.open(ARGV[0]) {|rs|
  pp rs.instance_eval { @lead }
  pp rs.fields
  if ARGV[1]
    rs.each do |r|
      pp r
    end
  end
}