title: Batch: delete line feed from end of text file?
body: <p>I have a .txt file where I need to get rid of the last line feed.
  Looking at the file in a HEX Editor it shows &quot;0d 0a&quot; at the end.</p>
  <p>I have looked at the thread <a href="https://stackoverflow.com/questions/3116022/how-to-delete-linefeed-using-batch-file">How to delete Linefeed using batch file</a> but that did not help.
  I have tried <code>COPY source target /b</code> which also does not help.</p>
  <p>Unfortunately I can't use Java or any third party tools, I need to use a batch file.</p>
  <p>How can I get rid of that line feed at the end?</p>