0.0
The project is in a healthy, maintained state
Evaluates some code on each line of the input e.g. `ls -l | each "puts l.split.first"`
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies
 Project Readme

dorian-each

Evaluates some code on each line of the input

e.g. ls -l | each "puts l.split.first"

Install

gem install dorian-each

Or as part of my other gems:

gem install dorian

Usage

From my history:

pbpaste | each "puts line.split('-')[1].split.first" | uniq
git grep Thing test/ | grep isocode | each "puts l.split(':').first" | sort | uniq | xvim
cat file.csv | each "code, name = l.split(\"\\t\"); if code.include?(','); puts code; else; puts code.gsub(' ', '') + ',' + name; end"
git grep thing | grep " doc " | each "puts l.split(':').first" | xvim