title: For files in directory, only echo filename (no path)
body: <p>How do I go about echoing only the filename of a file if I iterate a directory with a for loop?</p>
  
  <pre><code>for filename in /home/user/*
  do
    echo $filename
  done;
  </code></pre>
  
  <p>will pull the full path with the file name. I just want the file name.</p>