[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find dirs with single item



 Hi.

On Thu, 29 May 2014 14:31:03 -0500
Dennis Wicks <wix@mgssub.com> wrote:

> Can't quite figure out how to do this.
> 
> I'd like to be able to scan a Volume or directory and find 
> all directories that have only one item in them. Either 
> directory or file.

Try this (yep, links should be 3, not 1):

find <where_you_want_to_search> -type d -links 3

Reco


Reply to: