I have a list of files, in different folders, named like
In some of them, I need to remove everything up to the second _, so they become
In others (already in a separate folder), I need to remove everything up to the third _
I know commands such as rename, which use some REGEX, but I don't know the exact expression for this case. How can I do that on Linux terminal?