title: shell script or linux command to recursively find all js/css file under public folder
body: <p>I need help with shell script or linux command to recursively find all js/css file under public folder, then create the filename.min.jsm on the same directory of previous found but also put the filename.js inside that filename.min.jsm. </p>
  
  <p>For example</p>
  
  <pre><code>public/test/a.js
  public/b.js
  public/test2/test3/c.js
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>public/test/a.js
  public/test/a.min.jsm  -&gt;  a.js is written inside of this file
  public/b.js   
  public/b.min.jsm   -&gt;  b.js is written inside of this file
  public/test2/test3/c.js
  public/test2/test3/c.min.jsm   c.js is written inside of this file
  </code></pre>