Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple command to process each line of ARGF.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
Gemfile
README.md
Rakefile
each.gemspec
foo.txt

README.md

each

A simple command to process each line of ARGF.

By the way, do you know the '-n' option of ruby?

Install

$ gem install each

Example

$ cat foo.txt
a b c
d e f
$ cat foo.txt | each '_.split[1].upcase'
B
E

Copyright

Copyright (c) 2012 jugyo, released under the MIT license

Something went wrong with that request. Please try again.