I have a directory full of several other directories with the same structure, so it looks like thistop/A/Output/platform/..top/B/Output/platform/..top/C/Output/platform/..and so on. I want to, starting from the top level, delete all the directories downwards of the platform directories, such that I end up withtop/A/Outputtop/B/Outputtop/C/OutputCan anyone recommend me a command for this? I am on rhel7 with bash 4.1.2EDIT:I have a lot of '2nd level' directories whose names are more complex than single letters, sorry should have noted that more explicitly
Delete large amount of directories under a top level
bash;directory;rm