<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/15465" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-03-01T14:59:59-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/15465</id>

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-01T14:59:59-04:00</updated>

		<published>2008-03-01T14:59:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81324#p81324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81324#p81324"/>
		<title type="html"><![CDATA[^M thing at the end of every line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81324#p81324"><![CDATA[
<blockquote class="uncited"><div>Thanks, that did the trick!<br><br>But do you know why the ^M character appears during DOS to UNIX conversion? What's this symbol called and the story behind it?</div></blockquote>ascii 13, hex 0d ; it's a carriage return marker...<br><br>A quick google pulled up <a href="http://www.robelle.com/smugbook/ascii.html" class="postlink">this</a>, probably helpful for you to tell other control-sets and their meanings.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Mar 01, 2008 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[emokid]]></name></author>
		<updated>2008-03-01T14:25:32-04:00</updated>

		<published>2008-03-01T14:25:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81322#p81322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81322#p81322"/>
		<title type="html"><![CDATA[^M thing at the end of every line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81322#p81322"><![CDATA[
Thanks, that did the trick!<br><br>But do you know why the ^M character appears during DOS to UNIX conversion? What's this symbol called and the story behind it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9522">emokid</a> — Sat Mar 01, 2008 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2008-03-01T14:20:31-04:00</updated>

		<published>2008-03-01T14:20:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81321#p81321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81321#p81321"/>
		<title type="html"><![CDATA[^M thing at the end of every line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81321#p81321"><![CDATA[
Sometimes certain characters(for eg.,^M characters)are placed in a file during a DOS to UNIX conversion. To modify these files with a lot of ^M symbol at the end of every line, <strong class="text-strong">using the vi editor</strong>, use the following command:<br><div class="codebox"><p>Code: </p><pre><code>:%s/^M//g</code></pre></div>(To get the ^M hold the control key, press V then M (Both while holding the control key) and the ^M will appear.)<br>This command will find all occurances and replace them with nothing. <br>Here, the <strong class="text-strong">:%s</strong> is a basic search and replace command in vi.  It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sat Mar 01, 2008 2:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[emokid]]></name></author>
		<updated>2008-03-01T14:13:57-04:00</updated>

		<published>2008-03-01T14:13:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81320#p81320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81320#p81320"/>
		<title type="html"><![CDATA[^M thing at the end of every line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81320#p81320"><![CDATA[
For some reason, there is a ^M character at the end of every line in a script. How can I get rid of all of them? (It's not 2 separate characters, ^M seems to be just one if I try to move my cursor to it, or press backspace it deletes ^M at the same time.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9522">emokid</a> — Sat Mar 01, 2008 2:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
