A simple command to process each line of ARGF.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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