title: Bash script to analyze directory and print directory summary
body: <p>I am working on a script that will analyze any dir in unix and will display the output:
  <strong>script.sh dir1 dir2 ... dirn</strong></p>
  
  <p><strong>Needed output:</strong>
  Directory xxx contains yy files and zz directories</p>
  
  <pre><code>#!/bin/bash
  echo 'Enter Dir names'
  read dirs
  for input_source in $dirs; do 
  ls -ld|wc -l; 
  echo
  # here goes a problem I am trying to figure out how to get this value printed by echo
  # together with dirs and files quantity
  </code></pre>
  
  <p>Please advise.</p>
  
  <p>I am not able to figure out how to proceed with the code. Please advise </p>