Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 1996 10:46:05 +0000 ()
From:      "Justin J. Ashworth" <justin@spacehog.structured.net>
To:        Henrik Johansson <f94jnh@student.udd.htu.se>
Cc:        questions@freebsd.org
Subject:   Re: Live file system
Message-ID:  <Pine.BSI.3.95.960818104137.178F-100000@spacehog.structured.net>
In-Reply-To: <199608181554.RAA17366@rs02.udd.htu.se>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sun, 18 Aug 1996, Henrik Johansson wrote:
>
>2. DIR /S COMMAND
>
>Is there a UNIX equivalent to the DOS command DIR /S [filename]
>which searches the entire directory tree for a certain file?

find / -name 'filename' -print

filename can contain wildcards. The slash is the starting point, so to
search from the current directory you'd replace it with a period.
Personally I find this long procedure ridiculous, so I created a small
script that depends on find and takes only one parameter, the filename,
and searches from the current directory.

Hope that helps!

----------
Justin Ashworth
justin@spacehog.structured.net




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.960818104137.178F-100000>