Created
September 16, 2014 22:57
Revisions
-
Lampros renamed this gist
Sep 16, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Lampros created this gist
Sep 16, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/usr/bin/ruby #By Lampros Chaidas #wc replacement in ruby input = $stdin.read words = input.split(" ").count newlines = input.lines.count characters = input.length print "\t#{newlines}\t#{words}\t#{characters}\n"