Mark Rogers mark@quarella.co.uk wrote:
So either I need to find a way to get the fullname of the owner (I know stat will do this but I have a lot these to do and I can't see a good way to just get a list)
This may be dangerous:- find . -maxdepth 1 -printf 'su %u -c "rm -r %p"\n' | sh -x
Hope that helps,