Readme.md in pru-0.1.4 vs Readme.md in pru-0.1.5

- old
+ new

@@ -13,13 +13,23 @@ ===== pru supports mapping and reducing.<br/><br/> Map works on each line as String<br/> Reduce works on all lines as Array<br/> - something | pru 'map' ['reduce'] - something | pru -r 'reduce' + something | pru 'map' + something | pru 'map' 'reduce' + something | pru '' 'reduce' + something | pru --reduce 'reduce' + -r, --reduce CODE reduce via CODE + + -I, --libdir DIR Add DIR to load path + --require LIB Require LIB (also comma-separated) + + -h, --help Show this. + -v, --version Show Version + ### Examples # grep --- all lines including foo ls -al | grep foo ls -al | pru /foo/ @@ -40,11 +50,11 @@ ls -al | awk '{ s += $2; } END {print "average" ,int(s/NR);print "count ",int(NR)}' ls -al | pru 'split(" ")[1]' '"average #{mean(&:to_i)}\ncount #{size}"' # wc --- count lines ls -al | wc -l - ls -al | pru -r 'size' + ls -al | pru --reuduce 'size' # sed -- replace a 5 with five ls -al | sed 's/5/five/' ls -al | pru 'gsub(/5/,"five")' @@ -63,9 +73,10 @@ Authors ======= ### [Contributors](http://github.com/grosser/pru/contributors) - [John Hobbs](http://github.com/jmhobbs) - [Vasiliy Ermolovich](http://github.com/nashby) + - [Jens Wille](http://blackwinter.de) [Michael Grosser](http://grosser.it)<br/> michael@grosser.it<br/> Hereby placed under public domain, do what you want, just do not hold me accountable...