Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 14:09:01 -0700 (PDT)
From:      Emmanuel Gravel <e_gravel@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: [OT] shell scripting, testing for files
Message-ID:  <20000810210901.26901.qmail@web1603.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Of course :)

Thanks! That's all I really needed ;)

--- Mark Ovens <marko@freebsd.org> 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 <pattern>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000810210901.26901.qmail>