1

Delete all files but exclude some files

view story
linux-howto

http://www.unix.com – Hi, I have a software install in a directory, says "/opt/tibco". If I want to remove all the things in this directory and its sub-directories, but exclude all log files (*.log in different directories) and keep empty directories exist. What should my command look like? I have no idea on how to keep those logs files in orginal directories. :confused::confused: Thanks you! (HowTos)