For quick scripts, Ruby is far better than bash
Just make liberal use of the ` (back tick) functionality
#!/usr/bin/env ruby
cool_files = `grep -l "cool" *`.split("\n")
exit_status = $?.exitstatus
stdout_and_stderr = `git fsck 2>&1`
Written by Stuart Knightley
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#