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:
./bashfile.sh 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"

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