Permalink
Browse files

example of how to use npe, just in case you cannot install pru somewh…

…ere :)
  • Loading branch information...
1 parent 717d341 commit 917246f661f5b66c6c71481813288f186d8d9d4a @grosser committed Sep 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Readme.md
View
@@ -133,6 +133,9 @@ Usage
# Cleanup strange whitespace in a file
pru -i Rakefile 'gsub(/\r\n/,"\n").gsub(/\t/," ")'
+ # Removing certain lines from output vs ruby -npe
+ ls -al | ruby -npe 'next unless $_.split(" ")[1].to_i > 3'
+ ls -al | pru 'split(" ")[1].to_i > 3'
Gemsets
=======

0 comments on commit 917246f

Please sign in to comment.