title: How to remove the Ctrl-Z in the file with dos batch
body: <p>I found that every time I concatenate all the files into one file with </p>
  
  <pre><code>copy *.txt all.txt
  </code></pre>
  
  <p>, there is a Ctrl-Z character at the end of the file. I don't want this character. Is there any way to write a batch script to remove this character or avoid this to happen? </p>
  
  <p>What I wanted to do is </p>
  
  <pre><code>cat *.txt &gt; all.txt 
  </code></pre>
  
  <p>in linux.</p>