I have folders and files with the following structure and some of the files contains the string ModuleName.
ModuleName
├── Application\ Logic
│ └── Interactor
│ ├── ModuleNameInteractor.swift
│ └── ModuleNameInteractorIO.swift
├── Module\ Interface
│ └── IModuleNameModule.swift
└── User\ Interface
├── Presenter
│ └── ModuleNamePresenter.swift
├── View
│ ├── IModuleNameView.swift
│ └── ModuleNameViewController.swift
└── Wireframe
└── ModuleNameWireframe.swift
I want to replace all the occurrences of ModuleName in folder name, file name and file content by another name (let's say TestModule) with a Linux or a python script.
I tried with the find command but renaming the folders provoque No such file or directory for the subfolders / subfiles.