Article 567G3 How do I delete all files that start with syslog BUT do not end with .gz?

How do I delete all files that start with syslog BUT do not end with .gz?

by
cesarsj
from LinuxQuestions.org on (#567G3)
I would like to leave only the compressed logs.

I would like to leave only the compressed logs. How could I delete all those that don't end with .gz at once? Does the rm command have any flags for this?latest?d=yIl2AUoC8zA latest?i=HrD44zxDMDU:XfHmxn3hsik:F7zBnMy latest?i=HrD44zxDMDU:XfHmxn3hsik:V_sGLiP latest?d=qj6IDK7rITs latest?i=HrD44zxDMDU:XfHmxn3hsik:gIN9vFwHrD44zxDMDU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments