Skip to content

Instantly share code, notes, and snippets.

@jswanner
Last active May 25, 2018 17:29
Show Gist options
  • Save jswanner/e9f8040ca9372121325bc733cd0598f5 to your computer and use it in GitHub Desktop.
Save jswanner/e9f8040ca9372121325bc733cd0598f5 to your computer and use it in GitHub Desktop.
$ chmod +x wc.rb
$ echo "hello, world" | ./wc.rb
1 2 13
$ printf "line 1\nline 2\n" | ./wc.rb
2 4 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment