Skip to content

dorianmariecom/dorian-each

Repository files navigation

dorian-each

Run a Ruby snippet for each input line.

Install

gem install dorian-each

Also included in the aggregate gem:

gem install dorian

Usage

each [options] [file ...] "ruby code"

Run each -h for generated option details and each -v for the installed version.

Notes

  • Sets it to each stripped line. Useful options include --progress, --debug, --rails, --stdout, --stderr, and --colorize.

Examples

Double numbers

printf '1\n2\n' | each "puts it.to_i * 2" -c false

Output:

2
4

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors