18
2
I'd like to remove all directories from the pwd but leave the files in the pwd alone. If the content of my pwd is:
mydir1
mydir2
myfile1
myfile2
then I'd like to be left with just
myfile1
myfile2
I assume that I need to use rm -r -i
Am I correct?
1That will also follow symbolic links, which very probably isn't desired here. – JdeBP – 2014-02-07T16:43:49.653