title: shell must parse ls -Al output and get last field (file or directory name) ANY SOLUTION
body: <p>I must parse <code>ls -Al output</code> and get file or directory name</p>
  
  <p><code>ls -Al</code> output :</p>
  
  <pre><code>drwxr-xr-x  12 s162103  studs         12 march 28 2012 personal domain
  drwxr-xr-x   2 s162103  studs          3 march 28 22:32 public_html
  drwxr-xr-x   7 s162103  studs          8 march 28 13:59 WebApplication1
  </code></pre>
  
  <p>I should use only <code>ls -Al | &lt;something&gt;</code></p>
  
  <p>for example:</p>
  
  <pre><code>ls -Al | awk '{print $8}'
  </code></pre>
  
  <p>but this doesn't work because <code>$8</code> is not name if there's spaces in directory name,it is a part of name. maybe there's some utilities that cut last name or delete anything before? I need to find any solution. Please, help!</p>
  
  <p>EDITED: I know what parse ls -Al is bad idea but I should exactly parse it with construction above! No way to use some thing like this</p>
  
  <pre><code>for f in *; do
      somecommand "$f"
  done
  </code></pre>