<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Reading Standard Input in a Bash Shell Script</title>
	<atom:link href="http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/</link>
	<description>I'm a biologist not a...</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:02:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jeff Schroeder</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/comment-page-1/#comment-168206</link>
		<dc:creator>Jeff Schroeder</dc:creator>
		<pubDate>Fri, 16 Jul 2010 19:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/#comment-168206</guid>
		<description>@J from 2007: If you&#039;re going to correct someone, at least try a little harder. You win one of the ancient Unix &quot;Useless Use of Cat&quot; awards.

This is more succinct and avoids a useless fork/execve of cat
./myscript.bash &lt; sourcefile.txt

enjoy :)</description>
		<content:encoded><![CDATA[<p>@J from 2007: If you&#8217;re going to correct someone, at least try a little harder. You win one of the ancient Unix &#8220;Useless Use of Cat&#8221; awards.</p>
<p>This is more succinct and avoids a useless fork/execve of cat<br />
./myscript.bash &lt; sourcefile.txt</p>
<p>enjoy :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tux</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/comment-page-1/#comment-166389</link>
		<dc:creator>Tux</dc:creator>
		<pubDate>Wed, 09 Jun 2010 17:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/#comment-166389</guid>
		<description>Thank you so much. I was trying for an hour now until I found this page and finally made my script work.</description>
		<content:encoded><![CDATA[<p>Thank you so much. I was trying for an hour now until I found this page and finally made my script work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cool</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/comment-page-1/#comment-86670</link>
		<dc:creator>cool</dc:creator>
		<pubDate>Wed, 22 Oct 2008 22:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/#comment-86670</guid>
		<description>Thanks to you I was able to use my google-fu and find the answer right away.

I&#039;m going to change my script so that if $1 is &quot;&quot; 
# ($1 is the first argument passed to the script)
then it reads from /dev/stdin

That should let me cat up a bunch of logfiles and send them all to my parser without saving them as a file first.</description>
		<content:encoded><![CDATA[<p>Thanks to you I was able to use my google-fu and find the answer right away.</p>
<p>I&#8217;m going to change my script so that if $1 is &#8220;&#8221;<br />
# ($1 is the first argument passed to the script)<br />
then it reads from /dev/stdin</p>
<p>That should let me cat up a bunch of logfiles and send them all to my parser without saving them as a file first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: firebush</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/comment-page-1/#comment-58293</link>
		<dc:creator>firebush</dc:creator>
		<pubDate>Sat, 28 Jun 2008 15:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/#comment-58293</guid>
		<description>Thanks, this was helpful.</description>
		<content:encoded><![CDATA[<p>Thanks, this was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ScottS-M</title>
		<link>http://scott.sherrillmix.com/blog/programmer/reading-standard-input-in-a-bash-shell-script/comment-page-1/#comment-3969</link>
		<dc:creator>ScottS-M</dc:creator>
		<pubDate>Mon, 11 Jun 2007 14:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/uncategorized/reading-standard-input-in-a-bash-shell-script/#comment-3969</guid>
		<description>That&#039;s true. I tend to be lazy and just call bash explicitly instead of using chmod and adding  &lt;code&gt;#!/bin/bash&lt;/code&gt; to the first line of the script.</description>
		<content:encoded><![CDATA[<p>That&#8217;s true. I tend to be lazy and just call bash explicitly instead of using chmod and adding  <code>#!/bin/bash</code> to the first line of the script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

