Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: listing/deleting empty directories recursively
- X-seq: zsh-users 9693
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: listing/deleting empty directories recursively
- Date: Sat, 19 Nov 2005 11:28:15 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <tfrtn1dt9nf26m1rka6b9kg3bmcoa2evs4@xxxxxxx> <200511191057.25776.cht@xxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Sat, 19 Nov 2005 10:57:25 +0100, wrote:
>> ls -ld *(/^F)
>>
>> Will list any empty directories, but only for one level of subdirectories,
>> how to make it delete empty directories at any level.
>
>ls -ld **/*(/^F)
>(will list empty directories at any level in the current working directory)
>
>Christian
Thanx works just dandy,
Now I'd like to rm those directories, and log which ones were deleted.
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author