From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21998 invoked by alias); 4 Mar 2012 14:31:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16825 Received: (qmail 10374 invoked from network); 4 Mar 2012 14:31:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.22 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX18XPKFcxuAXbL6GACeffbjw1WSoAE/C1mkk1EqbM4 SvfkKAe7n5wniS Date: Sun, 4 Mar 2012 15:31:02 +0100 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: if the file is not found the files is not found is the file not found Message-ID: <20120304143102.GE18164@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 Hi, ... the cat has bitten into its own tail... somehow... I wrote a script which handles dvbt streamed files. The process creates some temporary files, which I want to remove afterwards, because they normally big ones. First I wrote rm -f ${f}-[0-9]*.mp2 which breaks which an error, if the certain has not created files of that pattern ... despite the "-f" of the "rm" command. Then I treid to check for the existence of such files in beforehand this way: [ -f ${f}-[0-9]*.mp2 ]] && rm -f ${f}-[0-9]*.mp2 . Which fails for the same reason. Did I get lost here? ;) How many cats do I need to get one, which does not bit into the tail of the next cat I enter into the script ? Who knows of the according dog to chase the cats away and make my script work? ;) :)) Thanks a lot for any help in advance! Best regards, mcc