I need the program to find filename with certain string, then rename it. That part is working. But i need to add some user input that will ask the user before every renaming if he wants to rename the file or not. Then after it finds all the files it should write filenames that were renamed. The command I have only renames all files that matches the string.
find . -type f -exec rename's/(.*)\/(.*)string1(.*)/$1\/string2$2string3$3/' {} + ;;