title: How to change directory and list output more times?
body: <p>I have a folder which contains seven directories</p>
  
  <pre><code>meas_2015-06-29_19-03-00  meas_2015-06-29_19-18-28  meas_2015-06-29_19-22-58  meas_2015-06-29_19-26-58  meas_2015-06-29_19-30-58  meas_2015-06-29_19-47-58  meas_2015-06-29_20-39-58
  </code></pre>
  
  <p>Each of them has xml file,where all the measurement parameters have been written including this line</p>
  
  <pre><code>&lt;num_samples&gt;245760&lt;/num_samples&gt;
  </code></pre>
  
  <p>I want all seven number of samples written on the screen.</p>
  
  <p>How should I write shell script for this?Should I use alias's or ...?
  I have tried like this</p>
  
  <pre><code>grep -Ri "num-samples" "*.xml" | wc -l
  </code></pre>
  
  <p>But got</p>
  
  <pre><code>grep: *.xml: No such file or directory
  0
  </code></pre>
  
  <p>So I need to enter every subdirectory first.</p>