Answer the question
In order to leave comments, you need to log in
How to delete empty folders in a specific order in bash?
Delete the raz/dwa/trzy folders starting with trzy and stop if the folder is not empty.
raz, dwa i trzy - folder names (written in Polish)
Answer the question
In order to leave comments, you need to log in
rmdir trzy && rmdir raz && rmdir dwa
PS Of course, if we are talking about nested folders, the same can be done with nested ones:
rmdir raz/dva/trzy/ && rmdir raz/dva/ && rmdir raz/
the find has everything you need
and the depth of min and max
, and by the way, the output is only empty!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question