title: Append a text to the end of multiple files in Linux
body: <p>I need to append the following code to the end to all the php files in a directory and its sub directory:</p>
  
  <pre><code>&lt;/div&gt;
  &lt;div id="preloader" style="display:none;position: absolute;top: 90px;margin-left: 265px;"&gt;
  &lt;img src="ajax-loader.gif"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried with</p>
  
  <pre><code>echo "my text" &gt;&gt; *.php
  </code></pre>
  
  <p>But terminal showed the error:</p>
  
  <pre><code>bash : *.php: ambiguous redirect
  </code></pre>
  
  <p>What should I do. there are hundreds of files to add this code segment and it would be a real tough time adding it in each file. Thanks in advance.</p>