I'd like to recursively rename all repository and file names under a specific directory that contain a given pattern.
I think I found a potential solution here with the following command:
find /your/target/path/ -execdir rename 's/special/regular/' '{}' \+
However it seems like I don't have the right rename
command.
I installed Perl Rename package but I still don't have the Perl based rename
command available. What can I do to be able to use this command?
Is there an alternative solution to this rename
solution?
Let's say I have the following repositories and files:
BOOK1/
BOOK1/BOOK1_summary.txt
BOOK1/BOOK1_chapter1/BOOK1_chapter1.txt
I'd like to rename all occurrences of BOOK1 by BOOK-01 in repository and file names:
BOOK1-01/
BOOK1-01/BOOK1-01_summary.txt
BOOK1-01/BOOK1-01_chapter1/BOOK1-01_chapter1.txt