Timeline for Move all files from subdirectories to parent directory
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 6, 2020 at 20:59 | vote | accept | CommunityBot | ||
| Jan 1, 2020 at 23:06 | comment | added | Paul_Pedant | A similar command with find -depth -d would then find all subdirectories. -exec rmdir on those would be relatively safe because rmdir will only remove empty directories (unlike rm -r). | |
| Jan 1, 2020 at 22:09 | comment | added | jerch | If you put in there another while ... indirection, it would work for arbitrary nested sub folders (well the command will be abit more complicated, but I guess you get the idea) ;) | |
| Jan 1, 2020 at 21:52 | history | answered | kaylum | CC BY-SA 4.0 |