Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created October 7, 2014 17:15
Show Gist options
  • Save rhysd/1c32685942d4e8cfbe5d to your computer and use it in GitHub Desktop.
Save rhysd/1c32685942d4e8cfbe5d to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# encoding: utf-8
fs = Dir['*.txt'].lazy
puts fs.zip(fs.flat_map{|f| File.foreach(f).lazy}
.grep(/Maintainer: .*/)
.force).map(&:join).to_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment