Re: How to find dirs with single item
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.
>
> Any ideas??
>
> TIA!
> Dennis
If you're willing to write a fairly simple Python program it would be
pretty easy. You could probably even do it with a find piped to sort
piped to a very simple AWK script.
SteveT
Steve Litt * http://www.troubleshooters.com/
Troubleshooting Training * Human Performance
Reply to: