<?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: Determine if file exists in a Bourne/bash shell script</title>
	<atom:link href="http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dish</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-14928</link>
		<dc:creator>dish</dc:creator>
		<pubDate>Thu, 10 Sep 2009 13:26:51 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14928</guid>
		<description>Well, I&#039;ve found the solution:&lt;br&gt;&lt;br&gt;for *.gz&lt;br&gt;do&lt;br&gt;my_command&lt;br&gt;done</description>
		<content:encoded><![CDATA[<p>Well, I&#39;ve found the solution:</p>
<p>for *.gz<br />do<br />my_command<br />done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dish</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-14908</link>
		<dc:creator>dish</dc:creator>
		<pubDate>Wed, 09 Sep 2009 16:47:07 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14908</guid>
		<description>And what to do if I have several files smth.gz but I don&#039;t know how much and I don&#039;t know actual names.&lt;br&gt;I need to run some command if one of such files exists.</description>
		<content:encoded><![CDATA[<p>And what to do if I have several files smth.gz but I don&#39;t know how much and I don&#39;t know actual names.<br />I need to run some command if one of such files exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Third Rook</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-13799</link>
		<dc:creator>Third Rook</dc:creator>
		<pubDate>Sun, 26 Jul 2009 11:56:45 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13799</guid>
		<description>Regardless what the man page says. -f didn&#039;t work in my script, and -e did.&lt;br&gt;&lt;br&gt;Thanks ayw.</description>
		<content:encoded><![CDATA[<p>Regardless what the man page says. -f didn&#39;t work in my script, and -e did.</p>
<p>Thanks ayw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joeblackspirit</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-11890</link>
		<dc:creator>Joeblackspirit</dc:creator>
		<pubDate>Fri, 29 May 2009 07:15:43 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-11890</guid>
		<description>Perfect and simple!!</description>
		<content:encoded><![CDATA[<p>Perfect and simple!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-9734</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 24 Mar 2009 13:35:39 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9734</guid>
		<description>No. From the man page: &quot; -f filename&lt;br&gt;                True if filename exists and is  a  regular  file.&quot;&quot;</description>
		<content:encoded><![CDATA[<p>No. From the man page: &#8221; -f filename<br />                True if filename exists and is  a  regular  file.&#8221;"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iGuide</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-9150</link>
		<dc:creator>iGuide</dc:creator>
		<pubDate>Thu, 05 Mar 2009 12:49:32 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-9150</guid>
		<description>Shouldn&#039;t that one have some brackets or something?</description>
		<content:encoded><![CDATA[<p>Shouldn&#39;t that one have some brackets or something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayw</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-8330</link>
		<dc:creator>ayw</dc:creator>
		<pubDate>Tue, 10 Feb 2009 07:30:59 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-8330</guid>
		<description>if [ -e testfile ]; tests whether a file exists.&lt;br&gt;&lt;br&gt;if [ -f testfile ]; only tests whether file is a regular file</description>
		<content:encoded><![CDATA[<p>if [ -e testfile ]; tests whether a file exists.</p>
<p>if [ -f testfile ]; only tests whether file is a regular file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-5767</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 03 Dec 2008 15:01:02 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-5767</guid>
		<description>I don&#039;t think you&#039;re using it quite right Young Padawan</description>
		<content:encoded><![CDATA[<p>I don&#39;t think you&#39;re using it quite right Young Padawan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-5543</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 26 Nov 2008 17:33:58 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-5543</guid>
		<description>total crap, it doesn&#039;t actually test if the file is there or not, it just tests if the command line argument is there. There&#039;s a giant f*cking differences.</description>
		<content:encoded><![CDATA[<p>total crap, it doesn&#39;t actually test if the file is there or not, it just tests if the command line argument is there. There&#39;s a giant f*cking differences.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-5453</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Mon, 24 Nov 2008 12:59:09 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-5453</guid>
		<description>if [ -f testfile ];&lt;br&gt;then&lt;br&gt;echo Blablabla&lt;br&gt;fi</description>
		<content:encoded><![CDATA[<p>if [ -f testfile ];<br />then<br />echo Blablabla<br />fi</p>
]]></content:encoded>
	</item>
</channel>
</rss>
