title: batch file + convert LF to CR+LF
body: <p>We have a shell script file named <code>LineFeed.sh</code> which does a function of converting a Linefeed(<code>LF</code>) to Carriage Return + LineFeed. We want the same to be done by a batch file in windows . Is it possible?</p>
  
  <p>Linux shell file</p>
  
  <pre class="lang-sh prettyprint-override"><code>E_WRONGARGS=65
  cat OutputList|while read -r Line 
  do 
  if [ -z "$Line" ]
  then
  echo "Usage: `basename $0` filename-to-convert"
  exit $E_WRONGARGS
  fi
  NEWFILENAME=$Line.unx
  CR='\015'  # Carriage return.
         # 015 is octal ASCII code for CR.
         # Lines in a DOS text file end in CR-LF.
         # Lines in a UNIX text file end in LF only.
  tr -d $CR &lt; $1 &gt; $NEWFILENAME // here its deleting CR but i need to append LF
  # Delete CR's and write to new file.
  done
  echo "Original DOS text file is \"$1\"."
  echo "Converted UNIX text file is \"$NEWFILENAME\"."
  exit 0
  </code></pre>