yosafat yosafat - 6 months ago 70
Bash Question

LINUX How to delete file contains certain name?

I have a file name like this:


I want delete it using command linux, is it possible using
it's difficult because the name of file, especially in part date is always change based on datetime.
so, i want to delete where a filename contains filelog name.
is it possible? I'll run the command programatically and I don't know how to confirm it with


You can use a glob expression:

$ rm filelog*