3 # Copyright (C) CEA, EDF
4 # Author : Erwan ADAM (CEA)
8 # Usage : rfind dir suffix ...
10 # find all files *suffix in dir in a recursive way
11 # different of the usual command find ...
14 if test $# != 2 ; then
15 echo "Usage : $0 dir suffix"
20 # if the first argument is not a directory, returns
21 if test ! -d $1 ; then
22 # echo "$1 is not a directory"
25 # dont look in the CVS directories
26 # dont look in the autom4te* directories
29 */autom4te*) return ;;
34 # for each regular file contained in the directory
35 # test if it's a *"$2" file
45 # for each subdirectory of the first argument, proceeds recursively