ive recently been trying to change the names around in my project and have been having some trouble getting the task done properly.
my problem is when I try to use
find . -type f -print0 | xargs -0 sed -i 's/volix/sergio/g'
find . -type f -print0 | xargs -0 sed -i 's/Volix/Sergio/g'
find . -type f -print0 | xargs -0 sed -i 's/VOLIX/SERGIO/g'
find . -type f -print0 | xargs -0 sed -i 's/VLX/SRG/g'
this will find and replace all the names within the files im trying to change, but it leaves the name of the folders still the same as what they before the name changes.
EDIT: I would like to replace all occurrences of "volix" to "sergio" without disturbing the rest of the file name so I would like to replace like this
- volix-res.rc
- volix.qrc
- volix-tx.cpp
- volix_logo_horizontal.png
- volix_logo_horizontal2x.png
- unit_tmvolix.png
- unit_tvolix.png
to -
- sergio-res.rc
- sergio.qrc
- sergio-tx.cpp
- sergio_logo_horizontal.png
- sergio_logo_horizontal2x.png
- unit_tmsergio.png
- unit_tsergio.png
and many more files with the name "volix"in it, im wondering how I can change all of these at once instead of manually renaming one by one?
find -type d -name current_name -exec mv {} desired_name \;