Skip to content

Instantly share code, notes, and snippets.

@gouf
Created December 20, 2013 15:27
Show Gist options
  • Save gouf/8056341 to your computer and use it in GitHub Desktop.
Save gouf/8056341 to your computer and use it in GitHub Desktop.
bowser search angular の結果を加工してファイルに保存する1行スクリプト。
open('al', 'w').write %x{bower search angular}.to_s.split(/\n/).to_a.drop(2).map{|x| x.gsub /^\s+/, ''}.inject(''){|re, x| re += "#{x}\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment