Linux Today: Linux News On Internet Time.

More on LinuxToday

Linux: Bash Delete All Files In Directory Except Few

Jun 05, 2014, 15:00 (3 Talkback[s])
(Other stories by Anonymous)

I'm a new Linux system user. I need to cleanup in a download directory i.e. delete all files from ~/Downloads/ folders except the following types: *.iso - All iso images files. *.zip - All zip files. How do I delete all file except some in bash shell on a Linux, OS X or Unix-like systems?

Complete Story