Re: listing directories in unix
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 03/12/05
- Previous message: Bev A. Kupf: "Re: listing directories in unix"
- In reply to: Bev A. Kupf: "Re: listing directories in unix"
- Next in thread: Casper H.S. ***: "Re: listing directories in unix"
- Reply: Casper H.S. ***: "Re: listing directories in unix"
- Reply: Sven Mascheck: "Re: listing directories in unix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Mar 2005 11:02:20 GMT
On Sat, 12 Mar 2005 at 04:10 GMT, Bev A. Kupf wrote:
> On Fri, 11 Mar 2005 18:48:50 -0700,
> Bill Seivert (seivert@pcisys.net) wrote:
>> Using find . -type d has the side-effect of searching subdirectories
>> which may not be what the OP wants.
>
> In which event the OP could make use of find's "-maxdepth" option to
> specify the level of recursion.
Only if the OP's version of find has -maxdepth; it is far from
universal (and not required by POSIX).
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
===================================================================
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Previous message: Bev A. Kupf: "Re: listing directories in unix"
- In reply to: Bev A. Kupf: "Re: listing directories in unix"
- Next in thread: Casper H.S. ***: "Re: listing directories in unix"
- Reply: Casper H.S. ***: "Re: listing directories in unix"
- Reply: Sven Mascheck: "Re: listing directories in unix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]