Get [current, maximum] value pair:
Process.getrlimit(:NOFILE)[1]Set limit:
number = 1000 Process.setrlimit(:NOFILE, number)
Process.getrlimit(:NOFILE)[1]Set limit:
number = 1000 Process.setrlimit(:NOFILE, number)
gunzip filename.dict.dz -S .dzFor ruby You could read it using GZip reader and process as xml using nokogiri.
require 'nokogiri' require 'zlib' include Zlib data = GzipReader.open("dict.dict.dz"){|f|f.read} doc = Nokogiri::XML(data) p doc.xpath("k")[0].content