title: Create a npm command to create a file with content but without new line at the end
body: <p>I'm trying to use <code>echo -n</code> command to write some content to a file without a new line in node's package.json e.g</p>
  <pre><code>start: &quot;echo -n hello &gt; my.file&quot;
  </code></pre>
  <p>When I run <code>npm start</code>, instead of <code>hello</code> without a new line, it creates <code>-n hello</code> in <code>my.file</code>. However it runs correctly in my Terminal(I'm on Mac).</p>