<?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>Dammit Jim! &#187; script</title>
	<atom:link href="http://scott.sherrillmix.com/blog/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.sherrillmix.com/blog</link>
	<description>I'm a biologist not a...</description>
	<lastBuildDate>Tue, 12 Jan 2010 05:09:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reading Standard Input in a Bash Shell Script</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/</link>
		<comments>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/#comments</comments>
		<pubDate>Sat, 08 Jul 2006 12:34:01 +0000</pubDate>
		<dc:creator>ScottS-M</dc:creator>
				<category><![CDATA[Bash/UNIX]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[ENTER]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[standard input]]></category>
		<category><![CDATA[stdin]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/</guid>
		<description><![CDATA[I guess this is obvious to most people but it took me quite a while to dig it out on the internet. I wanted  my bash script to be able to read from standard input like cat sourcefile.txt&#124;bash myscript.bash.  It turns out the standard input can be read from /dev/stdin. So if I [...]]]></description>
			<content:encoded><![CDATA[<p>I guess this is obvious to most people but it took me quite a while to dig it out on the internet. I wanted  my bash script to be able to read from standard input like <code>cat sourcefile.txt|bash myscript.bash</code>.  It turns out the standard input can be read from <code>/dev/stdin</code>. So if I wanted to <code>sort</code> the standard input, myscript.bash would look like: <code>sort /dev/stdin</code></p>

<p>I think this is probably basic UNIX knowledge but I&#8217;m not a programmer.</p>]]></content:encoded>
			<wfw:commentRss>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
