N
N
Nikita Kit2017-05-20 17:29:29
bash
Nikita Kit, 2017-05-20 17:29:29

How to bulk rename the extension of a group of files located in folders?

I have a project - there are a lot of folders in it, template files with the pug extension - I switch to twig and the extensions need to be renamed.
Tried:
[email protected]:~/projects/umka-lp$ mmv ./\*.pug ./\*.twig
./*.pug -> ./*.twig : no match.
Nothing done.
[email protected]:~/projects/umka-lp$ rename '.pug/g' *.twig
syntax error at (user-supplied code), near "."
Guys help, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2017-05-22
@ShadowOfCasper

dudes on top are weird
where find . this is for the current directory.
For all levels of nesting. if you need to limit, then you prescribe -maxdepth 2 for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question