<?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>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: NeoVG</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-48757</link>
		<dc:creator>NeoVG</dc:creator>
		<pubDate>Mon, 22 Aug 2011 13:34:33 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48757</guid>
		<description>@Shabeer: You have to escape the whitespaces.  So try this:

bash-3.00$ ls file \name

@Others: -f fails, if the target is a symbolic link, as a link is NO regular file, although you can read it like one.</description>
		<content:encoded><![CDATA[<p>@Shabeer: You have to escape the whitespaces.  So try this:</p>
<p>bash-3.00$ ls file \name</p>
<p>@Others: -f fails, if the target is a symbolic link, as a link is NO regular file, although you can read it like one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teen</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-33293</link>
		<dc:creator>Teen</dc:creator>
		<pubDate>Tue, 28 Jun 2011 23:29:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33293</guid>
		<description>idiot</description>
		<content:encoded><![CDATA[<p>idiot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: it doesn't matter</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-32963</link>
		<dc:creator>it doesn't matter</dc:creator>
		<pubDate>Sat, 11 Jun 2011 22:42:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-32963</guid>
		<description>Swearing in this way is just a demonstration of childish bad behavior.  If you don&#039;t want to help or you don&#039;t have anything constructive to say then please don&#039;t say it.  
If you disagree with someone then explain your opinion respectfully, you may both be right or either of you may be wrong.  But either way there is no need for bad language is there?  </description>
		<content:encoded><![CDATA[<p>Swearing in this way is just a demonstration of childish bad behavior.  If you don&#8217;t want to help or you don&#8217;t have anything constructive to say then please don&#8217;t say it. <br />
If you disagree with someone then explain your opinion respectfully, you may both be right or either of you may be wrong.  But either way there is no need for bad language is there? </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Stammes</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-48106</link>
		<dc:creator>Jan Stammes</dc:creator>
		<pubDate>Thu, 21 Apr 2011 16:14:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48106</guid>
		<description>just where I was looking for</description>
		<content:encoded><![CDATA[<p>just where I was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shabeer</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-47164</link>
		<dc:creator>Shabeer</dc:creator>
		<pubDate>Mon, 14 Mar 2011 17:28:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47164</guid>
		<description>does the -f or -s option  work if the filename has a white space. below is the file and when I use the file name in if condition it throws an error. I tried with double quotes, single quotes etc.. if condition throws an error 

bash-3.00$ ls file name
file name
bash-3.00$
</description>
		<content:encoded><![CDATA[<p>does the -f or -s option  work if the filename has a white space. below is the file and when I use the file name in if condition it throws an error. I tried with double quotes, single quotes etc.. if condition throws an error </p>
<p>bash-3.00$ ls file name<br />
file name<br />
bash-3.00$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jscrobinson</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-47039</link>
		<dc:creator>Jscrobinson</dc:creator>
		<pubDate>Thu, 10 Mar 2011 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47039</guid>
		<description>I think a lot of you should grow up a little bit and try and do something about your bad language.</description>
		<content:encoded><![CDATA[<p>I think a lot of you should grow up a little bit and try and do something about your bad language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sims</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-44601</link>
		<dc:creator>sims</dc:creator>
		<pubDate>Thu, 09 Dec 2010 01:24:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44601</guid>
		<description>Well, at least they are acting like idiots. WTF does &quot;AND&quot; mean to you?</description>
		<content:encoded><![CDATA[<p>Well, at least they are acting like idiots. WTF does &#8220;AND&#8221; mean to you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drain</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-42785</link>
		<dc:creator>Drain</dc:creator>
		<pubDate>Thu, 30 Sep 2010 14:44:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42785</guid>
		<description>You are rude.</description>
		<content:encoded><![CDATA[<p>You are rude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Galbreath</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-42676</link>
		<dc:creator>Blake Galbreath</dc:creator>
		<pubDate>Sun, 26 Sep 2010 02:47:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42676</guid>
		<description>Um...

&quot;True if filename exists AND is a regular file&quot;

So, let me break it down for you idiots.

-f tests for an existing REGULAR file. If the file exists, but is NOT regular, then -f returns FALSE.

-e tests for an existing file, regardless if its regular or not. If the file is there (regular or not) it returns TRUE.

Hope I helped

;)</description>
		<content:encoded><![CDATA[<p>Um&#8230;</p>
<p>&#8220;True if filename exists AND is a regular file&#8221;</p>
<p>So, let me break it down for you idiots.</p>
<p>-f tests for an existing REGULAR file. If the file exists, but is NOT regular, then -f returns FALSE.</p>
<p>-e tests for an existing file, regardless if its regular or not. If the file is there (regular or not) it returns TRUE.</p>
<p>Hope I helped</p>
<p>;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Incognito</title>
		<link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/comment-page-1/#comment-42136</link>
		<dc:creator>Incognito</dc:creator>
		<pubDate>Sun, 05 Sep 2010 20:42:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-42136</guid>
		<description>-f didn&#039;t work for me either.
Maybe different Version of bash or whatever.
-e worked well.</description>
		<content:encoded><![CDATA[<p>-f didn&#8217;t work for me either.<br />
Maybe different Version of bash or whatever.<br />
-e worked well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 3/15 queries in 0.903 seconds using memcached
Object Caching 419/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 08:33:16 -->
