Created
December 20, 2013 15:27
-
-
Save gouf/8056341 to your computer and use it in GitHub Desktop.
bowser search angular の結果を加工してファイルに保存する1行スクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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