Re: Problem with the find command
From: Alan Connor (xxxxxx_at_xxxx.xxx)
Date: 07/29/03
- Next message: Erik Max Francis: "Re: Problem with the find command"
- Previous message: Barry Margolin: "Re: Problem with the find command"
- In reply to: Barry Margolin: "Re: Problem with the find command"
- Next in thread: Erik Max Francis: "Re: Problem with the find command"
- Reply: Erik Max Francis: "Re: Problem with the find command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Jul 2003 18:00:56 GMT
On Tue, 29 Jul 2003 16:38:23 GMT, Barry Margolin <barry.margolin@level3.com> wrote:
>
>
> In article <Pine.GSO.4.02A.10307291726110.10598-100000@vega.soi.city.ac.uk>,
> Lekeas GK <cj571@soi.city.ac.uk> wrote:
>>Hi All,
>>
>>I was trying to find all css files under my directory and I noticed that
>>the following commands worked fine:
>>
>>find . -name '*.css' -print 2>/dev/null
>>find ~foo/* -name '*.css' -print 2>/dev/null
>>
>>but the following ones didn't:
>>
>>find ~foo -name '*.css' -print 2>/dev/null
>>find /homes/foo -name '*.css' -print 2>/dev/null
>>
>>Is the search not meant to be recursive by default?
>
> Find recurses into directories by default (that's its primary purpose).
> I'll bet ~foo and /homes/foo is a symbolic link, not a directory; it
> doesn't recurses into symlinks, even if they point to directories.
>
Then why did
find ~foo/* -name '*.css' -print 2>/dev/null
work?
Alan
--
For Linux/Bash users: Eliminate spam with
the Mailbox-Sentry-Program. See the thread
MSP on comp.mail.misc for the scripts and docs.
- Next message: Erik Max Francis: "Re: Problem with the find command"
- Previous message: Barry Margolin: "Re: Problem with the find command"
- In reply to: Barry Margolin: "Re: Problem with the find command"
- Next in thread: Erik Max Francis: "Re: Problem with the find command"
- Reply: Erik Max Francis: "Re: Problem with the find command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]