Search all file contents recursively

Description Bash

This script is invaluable. It will search all file contents in the current dir for the first argument.

It will ignore all SVN data files.

The Code Download

  1. #!/bin/bash
  2. find | grep -v ".svn" | grep -v " " |  xargs grep --colour -H -n "$1"

Credits

Added by JC on 13th July 2010

Comments

There are no comments about this snippet.

Post Comment Github Markdown Supported

You must be logged in to post a comment.

Login here to post a comment