A
A
alex5e2015-03-04 01:18:49
linux
alex5e, 2015-03-04 01:18:49

How to delete in a directory only those files that contain an even number?

Good day.. There are 100 files in the directory
f8f27c3425bb494ba03301529d4ebccc.png
Can you tell me what command I can use to delete only those files whose names contain an even number?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Petrikov, 2015-03-04
@alex5e

Something like this
Regexps are a terrible force

B
Boris Benkovsky, 2015-03-04
@benbor

one command - no, you need to write a script, be it shell, bash or php. What are you good at, as they say

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question