I
I
i_want_to_know_everything2017-09-25 03:22:57
linux
i_want_to_know_everything, 2017-09-25 03:22:57

Ssh recursive renaming of files?

there are files .php.gz should be replaced with .php
now I'm doing this
rename 's/.php.gz/.php/g' *.php.gz
How to make it recursive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2017-09-25
@i_want_to_know_everything

find. -name "*.php.gz" -exec rename -v 's/.php.gz$/.php/g' {} \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question