Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Is there a "find file on system" command?
  • From: Bob Stanfield <stanassc@xxxxxxxxxxx>
  • Date: Wed, 19 May 2004 13:14:30 -0400 (EDT)
  • Message-id: <Pine.LNX.4.53.0405191309450.4106@xxxxxxxxxxxxxxxxx>
> > > > On Monday 17 May 2004 03:43, Jerome Lyles wrote:
>
> > > >
> > > > You need to put quotes around the expression you are looking for if it
> > > > contains special characters that the shell will act on (in your case
> > > > the *). Try this...
> > > >
> > > > find / -name "*.rpm"
> > > >
> > > > You want the find command to see the *, not the shell.
> > >
I created a script file in /usr/local/bin/fnd

find . -depth -mount -name "$1" -print | less

usage "fnd "*abc*"" will find all files in the subordinate paths matching the
mask.


Bob Stanfield
29 Ledge Ln
Pipersville, PA 18947
V 610-294-9884
Fax 610-294-8119

< Previous Next >