From owner-freebsd-questions Sun Aug 18 10:44:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA03417 for questions-outgoing; Sun, 18 Aug 1996 10:44:07 -0700 (PDT) Received: from spacehog.structured.net (spacehog.structured.net [206.58.0.180]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA03412 for ; Sun, 18 Aug 1996 10:44:04 -0700 (PDT) Received: from localhost (justin@localhost) by spacehog.structured.net (8.7.5/8.7.3) with SMTP id KAA01530; Sun, 18 Aug 1996 10:46:05 GMT Date: Sun, 18 Aug 1996 10:46:05 +0000 () From: "Justin J. Ashworth" To: Henrik Johansson cc: questions@freebsd.org Subject: Re: Live file system In-Reply-To: <199608181554.RAA17366@rs02.udd.htu.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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