Skip to content

Instantly share code, notes, and snippets.

@x0bandeira
Created August 9, 2010 13:13
Show Gist options
  • Save x0bandeira/515390 to your computer and use it in GitHub Desktop.
Save x0bandeira/515390 to your computer and use it in GitHub Desktop.
$ grep "string_to_search_in_files" "folder/to/search" -R
#search for "add_object_page" in all files within
#the current folder and its subfolders
$ grep "add_object_page" . -R
#search for "File.expand_path" in all files within
#/var/www/rails_app and its subfolders
$ grep "File.expand_path" /var/www/rails_app -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment