Snippets v2

Languages
My Snippets

Find files recursively, ignoring SVN data Login or Register to Bookmark this snippet

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 Contact JC

Added by JC on 13th July, 2010

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment