Skip to content

Instantly share code, notes, and snippets.

@murphybytes
Created June 23, 2014 15:47
Show Gist options
  • Select an option

  • Save murphybytes/1e8f505ad67f881c309c to your computer and use it in GitHub Desktop.

Select an option

Save murphybytes/1e8f505ad67f881c309c to your computer and use it in GitHub Desktop.
Search ruby files for text
#!/bin/bash
echo "Search ruby files containing $1 in $(pwd)"
for f in `find . -name '*.rb'`; do grep -nH $1 $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment