A
A
Alexander2017-12-12 23:05:42
linux
Alexander, 2017-12-12 23:05:42

How to rename files with replacement in shell?

How to massively rename files, namely .jpeg(jpg).optimized to .jpeg(jpg) and if there is such a name, replace

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-12-13
@jcmvbkbc

rename -f 's/\.jpeg\(jpg\)\.optimized$/.jpeg(jpg)/' *.jpeg\(jpg\).optimized

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question