title: bash script list files from given user
body: <p>I have a problem with this one.
  It is constantly returning me, not a directory, but is certainly is</p>
  
  <pre><code>#!/usr/local/bin/bash  
  DIR=$1  
  if [ -d "$DIR" ]; then  
          ls -1Apl /home/$DIR | grep -v /\$  
  else  
          echo "not a directory"
  fi
  </code></pre>
  
  <p>One more thing, I need a little hint.  I have to list files from a given user in a given directory, where I get both the user and directory as parameters.
  Just suggestions, please.</p>