Re: Problem with the find command
From: Barry Margolin (barry.margolin_at_level3.com)
Date: 07/29/03
- Next message: Alan Connor: "Re: Problem with the find command"
- Previous message: Barry Margolin: "Re: Difference in mangling"
- In reply to: Lekeas GK: "Problem with the find command"
- Next in thread: Alan Connor: "Re: Problem with the find command"
- Reply: Alan Connor: "Re: Problem with the find command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Jul 2003 16:38:23 GMT
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.
-- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Next message: Alan Connor: "Re: Problem with the find command"
- Previous message: Barry Margolin: "Re: Difference in mangling"
- In reply to: Lekeas GK: "Problem with the find command"
- Next in thread: Alan Connor: "Re: Problem with the find command"
- Reply: Alan Connor: "Re: Problem with the find command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]