Sha256: 66e71f1deb0fdef60d50c958b287dc6a40426b07034c9474c318a5292347eca0
Contents?: true
Size: 274 Bytes
Versions: 26
Compression:
Stored size: 274 Bytes
Contents
#!/usr/bin/env ruby regex = /^\w+/ prefix = 'n/a' STDIN.each_line do |line| if line =~ regex prefix = line next end item = line.gsub(/^\s+/, '') item = item.chomp array = [] array.push(prefix.chomp) array.push(item) puts array.join("\t") end
Version data entries
26 entries across 26 versions & 1 rubygems