Sha256: dddec5c33cd282bfd09ff55f233d7ba46d701c04acaa6185d2f373e794a2bc65
Contents?: true
Size: 310 Bytes
Versions: 2
Compression:
Stored size: 310 Bytes
Contents
#!/usr/bin/ruby require 'bdb1' out = open("tmp/recno.rb", "w") print "====> BEFORE\n" File.foreach("recno.rb") do |line| print line out.print line end out.close db = BDB1::Recno.open "tmp/recno.rb" db.each do |v| db.delete(v) if /^db/ =~ v end print "====> AFTER\n" db.each do |v| puts v end db.close
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bdb1-0.2.5 | examples/recno.rb |
bdb1-0.2.4 | examples/recno.rb |