title: LINUX - shell script finding and listing all files with rights to write in directory tree
body: <p>Here is the code that i have soo far :</p>
  
  <pre><code>echo $(pwd &gt; adress)
  var=$(head -1 adress)
  rm adress
  
  found=0 #Flag 
  fileshow()
  {
      cd $1
      for i in *
          do
              if [ -d $i ] 
                  then 
                      continue
              elif [ -w $i ]
                  then 
                      echo $i 
                      found=1 
              fi
          done
      cd ..
  }
  fileshow $1
  
  if [ $found -eq 0 ]
      then
          clear
          echo "$(tput setaf 1)There arent any executable files !!!$(tput sgr0)"
  fi
  </code></pre>
  
  <p>Its working but it find files only in current directory. </p>
  
  <p>I was told that i need to use some kind of recursive method to loop through all sub-directories but i dont know how to do it. </p>
  
  <p>So if any one can help me i will be very grateful.</p>
  
  <p>Thanks! </p>