On Tue, Oct 20, 2020 at 12:10:13PM -0500, Ranjan Maitra wrote: > On Tue, 20 Oct 2020 13:28:37 +1030 Tim via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > Thanks, very much! Btw, how do I list a directory recursively with the more nested directories listed first inside a directory? I feel that I may want to do this before I use my script to convert MH to Maildir. > > I tried: > > find . -type d > > > ./inbox > ./Sent > ./Trash > ./fedora > ./fedora/FAS > ./research > ./research/user1 > ./research/user2 > ./reviewer > ./reviewer/can1 > ./reviewer/can2 > > and this does the right thing, almost, except that it lists the directories, and then the sub-directories of each. Is it possible to reverse this listing? If that were possible, I was considering running my script in order, then removing that directory and then going on down the list. "find" has a "-depth|-d" option. Try: find . -d -type d Jon -- Jon H. LaBadie jonfu@xxxxxxxxxx _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx