Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple command to process each line of ARGF.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 each.gemspec
Octocat-spinner-32 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.