> The find command works well and if you don't care to see the permission
> errors and such you might try appending 2>/dev/null to the command.
> Something like:
>
> find / -name "xxx*" -print 2>/dev/null
>
> In a nutshell your telling STDERR to output to /dev/null.
>
> Steve
>
> On Tue, 2003-02-25 at 13:30, MACK, JONATHAN (AIT) wrote:
> > Scott,
> >
> >         You might want to try and use the "find" command. This will output
> > the complete path of the file found return code you can do some form of
> > logic on.
> >
> >         Such as:
> >                         find <some path> -name "yyyy"
> >
> >
> > Just my 2 cents worth.
> >
> > Jon
> >
> >
> > -----Original Message-----
> > From: Scott Koos [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 10:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: grep question
> >
> >
> > Hi All,
> >
> >    Dumb question on grep, I'm trying to find if a file exists and the path
> > to it.  ls -laR | grep yyyyy shows me the yyyyy file exists, is there a way
> > to show the path to the file also.


whereis
locate
type -p

--
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my disposition.

==============================
If you don't like being told you're wrong,
        be right!

Reply via email to