title: what does $f means in shell script?
body: <pre><code>#!/bin/bash
  Files=`(find .  -type f)`
   for f in $Files
   do
    if [ "$(dirname $f)" != "." ]
    then
    # these are files in a subdirectory
     x=$(dirname $f)  #get the name of the file with the directory
     y=${x:2}         #remove ./ from the name
     echo $(basename $f) \($y\)
    else
     # these are files in the current directory
     echo $(basename $f)
   fi
  done
  </code></pre>
  
  <p>I'm having a hard time understanding what the line </p>
  
  <pre><code>Files=1(find . -type f)` 
  </code></pre>
  
  <p>means? Is it finding each and every file in the directory? Does "type f" means finding every "file" type?
  Also, What's the function of $f? </p>
  
  <p>I'm starting out in shell so any help would be really helpful!</p>