Skip to content

Instantly share code, notes, and snippets.

@robenalt
Created July 26, 2011 19:41
Show Gist options
  • Save robenalt/1107782 to your computer and use it in GitHub Desktop.
Save robenalt/1107782 to your computer and use it in GitHub Desktop.
Command Line Pipe from inside ruby
IO.popen("grep -i what", "w").write ( IO.popen('find . ').read )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment