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

Re: Joe [and MANY others] doesn't delete its config directory[ies] on purge



On Mon, Feb 11, 2002 at 10:33:01PM -0600, Adam Majer wrote:
> 
> As Josip Rodin indicated already,
> 
> find /etc -type d -empty | xargs rmdir
> 
> is one quick way..

Yes, but you should run that tricks more and more times.
Some dirs contains dirs which contain empty dirs ;)
So the script is

while [ `find /etc -type d -empty|wc -l` != 0 ]
do
	find /etc -type d -empty|xargs rmdir
done

-- 
Francesco P. Lovergine



Reply to: