R
R
rgggwwg2021-01-17 16:47:38
linux
rgggwwg, 2021-01-17 16:47:38

How to delete all files in a directory that have an "x" character in their name?

There are many identical files in the directory, with names like this:
001-4-300x225
007-3-612x1024
011-2-1024x1536
And I need to delete all files that contain the character "x". How can I do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2021-01-17
@rgggwwg

And the banal rm ./*x*does not suit?

K
ky0, 2021-01-17
@ky0

findaccording to the desired pattern with the key-delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question