dorian-all
Run one Ruby snippet against the whole input.
Install
gem install dorian-allAlso included in the aggregate gem:
gem install dorianUsage
all [file ...] "ruby code"Run all -h for generated option details and all -v for the installed version.
Notes
- Sets both
itandlinesto the complete input. Stdin input is available as an array of stripped lines; file input is concatenated as a string.
Examples
Join all incoming lines
printf '1\n2\n3\n' | all "puts lines.join"Output:
123