1

How do I remove all sub-directories from within a directory?

view story
linux-howto

http://unix.stackexchange.com – This question is kind of a phase II to the first question I posted at here I have a directory that contains a bunch of sub-directories, .zip files, and other random files not contained within a sub-directory. I'd like a command line script to remove all sub-directories from within the parent directory, but keep all zip files and loose files that don't belong to any sub-directories. All of the sub-directories have content, so I believe I'd need to force their deletion with the -f command. So basically, a command that looks inside the parent directory (or the current directory), deletes all f (HowTos)