Scripting for PuttyCM (NewLine Character)

Hi,
I am trying to edit a script to create an XML file to upload into PuttyCM. Everything works with the exception of the NewLine character. By default this option is set to Line feed (LF). I need it to be set to NewLine (CR/LF)

			  <options>
				   <loginmacro>True</loginmacro>
				   <postcommands>True</postcommands>
				   <endlinechar>10</endlinechar>
			  </options>

This is currently the code that I have. Does anyone know what needs to be changed?

One way:

awk '{printf("%s\r\n",$0)}' file > newfile

Replacing the

<endlinechar>10</endlinechar>

With

		  &lt;options&gt;
			   &lt;loginmacro&gt;True&lt;/loginmacro&gt;
			   &lt;postcommands&gt;True&lt;/postcommands&gt;
			   awk '\{printf\("%s\\r\\n",$0\)\}' file &gt; newfile
		  &lt;/options&gt;

That did not work. Did you mean something else?

What should be the desired output?

Currently the code does not hit the new line character after the username and password are entered, so everything is entered on the same line. Looking into this, I figured it was possible because the value 10 in the endline segment selects (LF) Line feed.

			<login>
				    <login>fakelogin</login>
				    <password>fakepassword</password>
				    <prompt />
			</login>
			 <timeout>
				   <connectiontimeout>1000</connectiontimeout>
				   <logintimeout>750</logintimeout>
				   <passwordtimeout>750</passwordtimeout>
				   <commandtimeout>750</commandtimeout>
			 </timeout>
			 <command>
				   <command1>set</command1>
				   <command2>show state</command2>
				   <command3>show esn</command3>
				   <command4 />
				   <command5 />
			  </command>
			  <options>
				   <loginmacro>True</loginmacro>
				   <postcommands>True</postcommands>
				   <endlinechar>10</endlinechar>
			  </options>

I need a value that changes that LF to a Newline(CR/LF) character

---------- Post updated at 07:58 AM ---------- Previous update was at 07:54 AM ----------

Here is a screen shot of the options I am trying to change

img.photobucket.com/albums/v394/Jett/Configuration-CR_2013-05-03_08-48-49.jpg