From owner-freebsd-questions Thu Aug 10 14: 5: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web1603.mail.yahoo.com (web1603.mail.yahoo.com [128.11.23.203]) by hub.freebsd.org (Postfix) with SMTP id 20B8E37BC46 for ; Thu, 10 Aug 2000 14:04:56 -0700 (PDT) (envelope-from e_gravel@yahoo.com) Received: (qmail 26902 invoked by uid 60001); 10 Aug 2000 21:09:01 -0000 Message-ID: <20000810210901.26901.qmail@web1603.mail.yahoo.com> Received: from [208.218.238.4] by web1603.mail.yahoo.com; Thu, 10 Aug 2000 14:09:01 PDT Date: Thu, 10 Aug 2000 14:09:01 -0700 (PDT) From: Emmanuel Gravel Subject: Re: [OT] shell scripting, testing for files To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Of course :) Thanks! That's all I really needed ;) --- Mark Ovens wrote: > On Thu, Aug 10, 2000 at 12:12:04PM -0700, Emmanuel > Gravel wrote: [...] > > if there are now files which follow the pattern, I > > get an unwanted error message from ls (that I > > would want to suppress, but haven't found any > > option to do so). > > To suppress the error from ls(1) try `ls > 2>/dev/null`: > > $ ls fdjk > ls: fdjk: No such file or directory > $ ls fdjk 2>/dev/null > $ __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message