Assume there is a folder that has files, symbolic links, and subdirectories as following:
files: file1, file2, file3, file4 symbolic links: link1-->file2, link2-->file3 subdirectories: dir1, dir2
I want delete file1, file3, file3, file4, link1, and link2. But leave dir1 and dir2 unchanged.
Note that, there is no one pattern such as
file* can cover all files' name. The name of files above are just for example and actually their name are various.