Find files recursively, ignoring SVN data

Description Bash

This script will find all files beneath the current dir, matching the first agumument. Put the code into a bash file and execute it like so:
./ image

In that example, it will find all files with "image" in the name. You don't need to wildcard your search.

The Code Download

  1. #!/bin/bash
  2. find . -iname "*$1*" | grep -v ".svn"


Added by JC on 13th July 2010


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