Run a Ruby snippet for each input line in parallel.
gem install dorian-parallelAlso included in the aggregate gem:
gem install dorianparallel [options] [file ...] "ruby code"Run parallel -h for generated option details and parallel -v for the installed version.
- Same model as
each, but uses theparallelgem. Output order may vary.
printf '1\n2\n' | parallel "puts it.to_i * 2"