0x0e.org | pentesting perspective

braindump on pentesting, QA, metasploit, constant learning

searching ruby source code

with one comment

contributing to open source? need to search & understand ruby code faster? This bash function should save you some time. I use it atleast 50-60 times a day.

Stick this in your .bashrc:

function rgrep() {
   find -L . -type f -name \*.rb -exec grep -n -i -H --color "$1" {} \;
}

Use like: $ rgrep “something”

Advertisements

Written by jcran

July 19, 2010 at 4:21 PM

Posted in utility

Tagged with , , , ,

One Response

Subscribe to comments with RSS.

  1. Thanks!

    This is much cleaner than how I was doing it.

    Alex

    March 31, 2011 at 9:17 PM


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: