Ruby One Liners

From EggeWiki
Revision as of 20:28, 1 September 2008 by Egge (talk | contribs) (New page: Parse Awstats html output. <geshi lang="ruby"> ruby -ne 'if $_ =~ /href="http:\/\/www.theeggeadventure.com\/(.*?)".*?([0-9]+).*?([0-9.]+) KB/ then puts "#{$1}\t#{$2}\t#{$3}" end ' \ < aws...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parse Awstats html output. <geshi lang="ruby"> ruby -ne 'if $_ =~ /href="http:\/\/www.theeggeadventure.com\/(.*?)".*?([0-9]+).*?([0-9.]+) KB/ then puts "#{$1}\t#{$2}\t#{$3}" end ' \

< awstats.pl | putclip

</geshi>