<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; ASCII</title>
	<atom:link href="http://www.wiredrevolution.com/tag/ascii/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>ASCII HTML Reference Chart</title>
		<link>http://www.wiredrevolution.com/guides/ascii-html-reference-chart?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ascii-html-reference-chart</link>
		<comments>http://www.wiredrevolution.com/guides/ascii-html-reference-chart#comments</comments>
		<pubDate>Wed, 18 May 2011 17:05:34 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1507</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/linux_guide_icon.png" width="100" height="91" alt="" title="guides" /><br/>ASCII is a 7-bit character set containing 128 characters and stands for the &#8220;American Standard Code for Information Interchange&#8221;. It was designed in the early 1960&#8242;s as a standard character set for computers and hardware devices. It contains the numbers from 0-9, the uppercase and lowercase English letters from A to Z, and some special [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr' rel='bookmark' title='Permanent Link: Remove Windows carriage returns with tr'>Remove Windows carriage returns with tr</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/customize-the-bash-ps1-command-prompt' rel='bookmark' title='Permanent Link: Customize the BASH PS1 command prompt'>Customize the BASH PS1 command prompt</a></li>
<li><a href='http://www.wiredrevolution.com/c/format-output-using-printf' rel='bookmark' title='Permanent Link: Format output using printf'>Format output using printf</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/linux_guide_icon.png" width="100" height="91" alt="" title="guides" /><br/><p>ASCII is a 7-bit character set containing 128 characters and stands for the &#8220;American Standard Code for Information Interchange&#8221;. It was designed in the early 1960&#8242;s as a standard character set for computers and hardware devices. It contains the numbers from 0-9, the uppercase and lowercase English letters from A to Z, and some special characters.</p>
<table border="0" cellspacing="1">
<tr>
<td class="table-head" colspan="3" align="center">ASCII HTML Code Reference Chart</td>
</tr>
<tr>
<td><strong>ASCII Character</strong></td>
<td><strong>HTML Code</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&amp;#32;</td>
<td>space</td>
</tr>
<tr>
<td>!</td>
<td>&amp;#33;</td>
<td>exclamation mark</td>
</tr>
<tr>
<td>&quot;</td>
<td>&amp;#34;</td>
<td>quotation mark</td>
</tr>
<tr>
<td>#</td>
<td>&amp;#35;</td>
<td>number sign</td>
</tr>
<tr>
<td>$</td>
<td>&amp;#36;</td>
<td>dollar sign</td>
</tr>
<tr>
<td>%</td>
<td>&amp;#37;</td>
<td>percent sign</td>
</tr>
<tr>
<td>&amp;</td>
<td>&amp;#38;</td>
<td>ampersand</td>
</tr>
<tr>
<td>&#8216;</td>
<td>&amp;#39;</td>
<td>apostrophe</td>
</tr>
<tr>
<td>(</td>
<td>&amp;#40;</td>
<td>left parenthesis</td>
</tr>
<tr>
<td>)</td>
<td>&amp;#41;</td>
<td>right parenthesis</td>
</tr>
<tr>
<td>*</td>
<td>&amp;#42;</td>
<td>asterisk</td>
</tr>
<tr>
<td>+</td>
<td>&amp;#43;</td>
<td>plus sign</td>
</tr>
<tr>
<td>,</td>
<td>&amp;#44;</td>
<td>comma</td>
</tr>
<tr>
<td>-</td>
<td>&amp;#45;</td>
<td>hyphen</td>
</tr>
<tr>
<td>.</td>
<td>&amp;#46;</td>
<td>period</td>
</tr>
<tr>
<td>/</td>
<td>&amp;#47;</td>
<td>slash</td>
</tr>
<tr>
<td>0</td>
<td>&amp;#48;</td>
<td>digit 0</td>
</tr>
<tr>
<td>1</td>
<td>&amp;#49;</td>
<td>digit 1</td>
</tr>
<tr>
<td>2</td>
<td>&amp;#50;</td>
<td>digit 2</td>
</tr>
<tr>
<td>3</td>
<td>&amp;#51;</td>
<td>digit 3</td>
</tr>
<tr>
<td>4</td>
<td>&amp;#52;</td>
<td>digit 4</td>
</tr>
<tr>
<td>5</td>
<td>&amp;#53;</td>
<td>digit 5</td>
</tr>
<tr>
<td>6</td>
<td>&amp;#54;</td>
<td>digit 6</td>
</tr>
<tr>
<td>7</td>
<td>&amp;#55;</td>
<td>digit 7</td>
</tr>
<tr>
<td>8</td>
<td>&amp;#56;</td>
<td>digit 8</td>
</tr>
<tr>
<td>9</td>
<td>&amp;#57;</td>
<td>digit 9</td>
</tr>
<tr>
<td>:</td>
<td>&amp;#58;</td>
<td>colon</td>
</tr>
<tr>
<td>;</td>
<td>&amp;#59;</td>
<td>semicolon</td>
</tr>
<tr>
<td>&lt;</td>
<td>&amp;#60;</td>
<td>less-than</td>
</tr>
<tr>
<td>&#61;</td>
<td>&amp;#61;</td>
<td>equals-to</td>
</tr>
<tr>
<td>&#62;</td>
<td>&amp;#62;</td>
<td>greater-than</td>
</tr>
<tr>
<td>?</td>
<td>&amp;#63;</td>
<td>question mark</td>
</tr>
<tr>
<td>@</td>
<td>&amp;#64;</td>
<td>at sign</td>
</tr>
<tr>
<td>A</td>
<td>&amp;#65;</td>
<td>uppercase A</td>
</tr>
<tr>
<td>B</td>
<td>&amp;#66;</td>
<td>uppercase B</td>
</tr>
<tr>
<td>C</td>
<td>&amp;#67;</td>
<td>uppercase C</td>
</tr>
<tr>
<td>D</td>
<td>&amp;#68;</td>
<td>uppercase D</td>
</tr>
<tr>
<td>E</td>
<td>&amp;#69;</td>
<td>uppercase E</td>
</tr>
<tr>
<td>F</td>
<td>&amp;#70;</td>
<td>uppercase F</td>
</tr>
<tr>
<td>G</td>
<td>&amp;#71;</td>
<td>uppercase G</td>
</tr>
<tr>
<td>H</td>
<td>&amp;#72;</td>
<td>uppercase H</td>
</tr>
<tr>
<td>I</td>
<td>&amp;#73;</td>
<td>uppercase I</td>
</tr>
<tr>
<td>J</td>
<td>&amp;#74;</td>
<td>uppercase J</td>
</tr>
<tr>
<td>K</td>
<td>&amp;#75;</td>
<td>uppercase K</td>
</tr>
<tr>
<td>L</td>
<td>&amp;#76;</td>
<td>uppercase L</td>
</tr>
<tr>
<td>M</td>
<td>&amp;#77;</td>
<td>uppercase M</td>
</tr>
<tr>
<td>N</td>
<td>&amp;#78;</td>
<td>uppercase N</td>
</tr>
<tr>
<td>O</td>
<td>&amp;#79;</td>
<td>uppercase O</td>
</tr>
<tr>
<td>P</td>
<td>&amp;#80;</td>
<td>uppercase P</td>
</tr>
<tr>
<td>Q</td>
<td>&amp;#81;</td>
<td>uppercase Q</td>
</tr>
<tr>
<td>R</td>
<td>&amp;#82;</td>
<td>uppercase R</td>
</tr>
<tr>
<td>S</td>
<td>&amp;#83;</td>
<td>uppercase S</td>
</tr>
<tr>
<td>T</td>
<td>&amp;#84;</td>
<td>uppercase T</td>
</tr>
<tr>
<td>U</td>
<td>&amp;#85;</td>
<td>uppercase U</td>
</tr>
<tr>
<td>V</td>
<td>&amp;#86;</td>
<td>uppercase V</td>
</tr>
<tr>
<td>W</td>
<td>&amp;#87;</td>
<td>uppercase W</td>
</tr>
<tr>
<td>X</td>
<td>&amp;#88;</td>
<td>uppercase X</td>
</tr>
<tr>
<td>Y</td>
<td>&amp;#89;</td>
<td>uppercase Y</td>
</tr>
<tr>
<td>Z</td>
<td>&amp;#90;</td>
<td>uppercase Z</td>
</tr>
<tr>
<td>[</td>
<td>&amp;#91;</td>
<td>left square bracket</td>
</tr>
<tr>
<td>\</td>
<td>&amp;#92;</td>
<td>backslash</td>
</tr>
<tr>
<td>]</td>
<td>&amp;#93;</td>
<td>right square bracket</td>
</tr>
<tr>
<td>^</td>
<td>&amp;#94;</td>
<td>caret</td>
</tr>
<tr>
<td>_</td>
<td>&amp;#95;</td>
<td>underscore</td>
</tr>
<tr>
<td>`</td>
<td>&amp;#96;</td>
<td>grave accent</td>
</tr>
<tr>
<td>a</td>
<td>&amp;#97;</td>
<td>lowercase a</td>
</tr>
<tr>
<td>b</td>
<td>&amp;#98;</td>
<td>lowercase b</td>
</tr>
<tr>
<td>c</td>
<td>&amp;#99;</td>
<td>lowercase c</td>
</tr>
<tr>
<td>d</td>
<td>&amp;#100;</td>
<td>lowercase d</td>
</tr>
<tr>
<td>e</td>
<td>&amp;#101;</td>
<td>lowercase e</td>
</tr>
<tr>
<td>f</td>
<td>&amp;#102;</td>
<td>lowercase f</td>
</tr>
<tr>
<td>g</td>
<td>&amp;#103;</td>
<td>lowercase g</td>
</tr>
<tr>
<td>h</td>
<td>&amp;#104;</td>
<td>lowercase h</td>
</tr>
<tr>
<td>i</td>
<td>&amp;#105;</td>
<td>lowercase i</td>
</tr>
<tr>
<td>j</td>
<td>&amp;#106;</td>
<td>lowercase j</td>
</tr>
<tr>
<td>k</td>
<td>&amp;#107;</td>
<td>lowercase k</td>
</tr>
<tr>
<td>l</td>
<td>&amp;#108;</td>
<td>lowercase l</td>
</tr>
<tr>
<td>m</td>
<td>&amp;#109;</td>
<td>lowercase m</td>
</tr>
<tr>
<td>n</td>
<td>&amp;#110;</td>
<td>lowercase n</td>
</tr>
<tr>
<td>o</td>
<td>&amp;#111;</td>
<td>lowercase o</td>
</tr>
<tr>
<td>p</td>
<td>&amp;#112;</td>
<td>lowercase p</td>
</tr>
<tr>
<td>q</td>
<td>&amp;#113;</td>
<td>lowercase q</td>
</tr>
<tr>
<td>r</td>
<td>&amp;#114;</td>
<td>lowercase r</td>
</tr>
<tr>
<td>s</td>
<td>&amp;#115;</td>
<td>lowercase s</td>
</tr>
<tr>
<td>t</td>
<td>&amp;#116;</td>
<td>lowercase t</td>
</tr>
<tr>
<td>u</td>
<td>&amp;#117;</td>
<td>lowercase u</td>
</tr>
<tr>
<td>v</td>
<td>&amp;#118;</td>
<td>lowercase v</td>
</tr>
<tr>
<td>w</td>
<td>&amp;#119;</td>
<td>lowercase w</td>
</tr>
<tr>
<td>x</td>
<td>&amp;#120;</td>
<td>lowercase x</td>
</tr>
<tr>
<td>y</td>
<td>&amp;#121;</td>
<td>lowercase y</td>
</tr>
<tr>
<td>z</td>
<td>&amp;#122;</td>
<td>lowercase z</td>
</tr>
<tr>
<td>{</td>
<td>&amp;#123;</td>
<td>left curly brace</td>
</tr>
<tr>
<td>|</td>
<td>&amp;#124;</td>
<td>vertical bar</td>
</tr>
<tr>
<td>}</td>
<td>&amp;#125;</td>
<td>right curly brace</td>
</tr>
<tr>
<td>~</td>
<td>&amp;#126;</td>
<td>tilde</td>
</tr>
</table>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr' rel='bookmark' title='Permanent Link: Remove Windows carriage returns with tr'>Remove Windows carriage returns with tr</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/customize-the-bash-ps1-command-prompt' rel='bookmark' title='Permanent Link: Customize the BASH PS1 command prompt'>Customize the BASH PS1 command prompt</a></li>
<li><a href='http://www.wiredrevolution.com/c/format-output-using-printf' rel='bookmark' title='Permanent Link: Format output using printf'>Format output using printf</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/guides/ascii-html-reference-chart/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Windows carriage returns with tr</title>
		<link>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-windows-carriage-returns-with-tr</link>
		<comments>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr#comments</comments>
		<pubDate>Sun, 30 Nov 2008 15:46:17 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[CRLF]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=794</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The end of a line in a UNIX text file is designated with the newline character. In Windows, a line ends with both newline and carriage return ASCII characters. If a file is saved in Windows and then moved to a Linux system these carriage returns can cause all sorts of problems. If the text [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The end of a line in a UNIX text file is designated with the newline character. In Windows, a line ends with both newline and carriage return ASCII characters. If a file is saved in Windows and then moved to a Linux system these carriage returns can cause all sorts of problems. If the text file is a BASH script for example it will not run correctly since it doesn&#8217;t know how to interpret these characters.</p>
<p>You can verify that a text file has these Windows carriage returns by running the <strong>cat</strong> command with the <strong>&#8216;-v</strong>&#8216; option which shows the non-printing characters.</p>
<pre>
$ cat -v inputfile | head
</pre>
<pre>
first line^M
second line^M
</pre>
<p>You can see the carriage return characters, &#8220;<strong>^M</strong>&#8221; (Cntl-M). </p>
<p>CRLF = Carriage Return Line Feed</p>
<p>There are various was to remove these carriage returns. You can use the <strong>dos2unix</strong> command but this is rarely installed by default on a a Linux system. The easiest way then is to use the &#8220;<strong>tr</strong>&#8221; command utility which always comes standard.</p>
<p>The command uses the <strong>tr</strong> command which translates and removes characters. This will remove the carriage return characters.</p>
<pre>
$ tr -d '\r' < inputfile > outputfile
</pre>
<p>You can verify they are really gone by running the same cat command again.</p>
<pre>
$ cat -v outputfile | head
</pre>
<pre>
first line
second line
</pre>
<p>You can also run the file command.</p>
<pre>
$ file inputfile
</pre>
<pre>
inputfile:             ASCII text
</pre>
<p>Optionally you can now overwrite the original file.</p>
<pre>
$ mv outputfile inputfile
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

