title: tcsh check if file exists in a given path
body: <p>First of all, I am new to tcsh and I realize its disadvantages and why it is harmful (and I agree!).</p>
  
  <p>However, I don't have a choice and I am needing to write a tcsh script where the user provides a directory as input and the script will check if it has the file 'test.txt' in it.</p>
  
  <p>The child directory would also technically be labeled as having it.</p>
  
  <p>I'm assuming this will need recursion and I know to check if a file exists and is a regular file I can use</p>
  
  <pre><code>if ( ! -d $1) then
      echo $1 "is not a directory."
      exit 1
  endif
  
  if ( -f test.txt ) then    #BUT LINK IT TO $1, as if test.txt exists in 
                             #given user path or its parent directories
  
       echo "The path includes the file."
  else
       echo "The path does NOT include the file."
  endif
  </code></pre>
  
  <p>I want it to be able to have <strong>it check $1</strong> (which will be user input).</p>