<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Thu, 10 Sep 2009 11:26:51 -0000</lastBuildDate><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-16306978</link><description>Well, I'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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dish</dc:creator><pubDate>Thu, 10 Sep 2009 11:26:51 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-16266651</link><description>And what to do if I have several files smth.gz but I don't know how much and I don't know actual names.&lt;br&gt;I need to run some command if one of such files exists.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dish</dc:creator><pubDate>Wed, 09 Sep 2009 14:47:07 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-13350987</link><description>Regardless what the man page says. -f didn't work in my script, and -e did.&lt;br&gt;&lt;br&gt;Thanks ayw.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Third Rook</dc:creator><pubDate>Sun, 26 Jul 2009 09:56:45 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-10250859</link><description>Perfect and simple!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joeblackspirit</dc:creator><pubDate>Fri, 29 May 2009 05:15:43 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-7468818</link><description>No. From the man page: " -f filename&lt;br&gt;                True if filename exists and is  a  regular  file.""</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Tue, 24 Mar 2009 11:35:39 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-6905299</link><description>Shouldn't that one have some brackets or something?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">iGuide</dc:creator><pubDate>Thu, 05 Mar 2009 10:49:32 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-6134959</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ayw</dc:creator><pubDate>Tue, 10 Feb 2009 05:30:59 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-4150491</link><description>I don't think you're using it quite right Young Padawan</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam</dc:creator><pubDate>Wed, 03 Dec 2008 13:01:02 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-4029319</link><description>total crap, it doesn't actually test if the file is there or not, it just tests if the command line argument is there. There's a giant f*cking differences.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Wed, 26 Nov 2008 15:33:58 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-3985389</link><description>if [ -f testfile ];&lt;br&gt;then&lt;br&gt;echo Blablabla&lt;br&gt;fi</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anonymous</dc:creator><pubDate>Mon, 24 Nov 2008 10:59:09 -0000</pubDate></item><item><title>Re: Determine if file exists in a Bourne/bash shell script | Bourne shell scripting | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/205/determine-if-file-exists-in-a-bournebash-shell-script/#comment-3333126</link><description>Just what I needed, thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DaVince</dc:creator><pubDate>Mon, 27 Oct 2008 18:57:52 -0000</pubDate></item></channel></rss>