title: run ls on the pipe output in shell script
body: <p>I have to do below operation in one script. </p>
  
  <pre><code>/etc/passwd file to display user home directory ownership:
  
  ls -lLd /&lt;usershomedirectory&gt;
  </code></pre>
  
  <p>I can grep the home path as following, please help me with running the ls on the home path based on the user home path that is identified using single line script.</p>
  
  <pre><code>grep "" /etc/passwd | cut -f 6 -d :
  </code></pre>
  
  <h2>Updated</h2>
  
  <p>How to do it for some more ls</p>
  
  <pre><code># ls -al /&lt;usershomedirectory&gt;/.login
  # ls -al /&lt;usershomedirectory&gt;/.cschrc
  # ls -al /&lt;usershomedirectory&gt;/.logout
  # ls -al /&lt;usershomedirectory&gt;/.profile
  # ls -al /&lt;usershomedirectory&gt;/.bash_profile
  # ls -al /&lt;usershomedirectory&gt;/.bashrc
  # ls -al /&lt;usershomedirectory&gt;/.bash_logout
  # ls -al /&lt;usershomedirectory&gt;/.env
  # ls -al /&lt;usershomedirectory&gt;/.dtprofile    
  # ls -al /&lt;usershomedirectory&gt;/.dispatch
  # ls -al /&lt;usershomedirectory&gt;/.emacs
  # ls -al /&lt;usershomedirectory&gt;/.exrc
  </code></pre>