I have attached a code snippet so you can see what I'm doing.
What I have is a directory filled with other directories and files containing .svn and .class.php files.
I need to come up with a way to determine if any of these files are being referenced in any of the other files.
This means I must grep through the files to find the string Filename.class.php but paths containing .svn should be ignored.
My comments indicate exactly my needs. But the code doesn't do exactly what they say. For instance,
set $file=$(ls -R1 |egrep -e '\.class\.php$') only gets the filename and not the directory/filename.
# Get the full path of the file
set $file=$(ls -R1 |egrep -e '\.class\.php$')
while [ $file ]
# Ignore .svn directories
set $result=$(grep "$file" *.class\.php)
# Only print resultant files not in a .svn directory