0.0
The project is in a healthy, maintained state
evaluates some code on each line of the input
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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