I have thousands folders, which names are structured like:
for which I want to swap the two first parts using the underscore
_ as a separator in order to end up with:
lastName may be be preceded by a nobiliary particle, separated with an extra
_ in the input folders.
For which the wanted output should be:
dateis always the last element.
- First names are single words.
- Last names are single words or composed words (2) with a particle.
I want to do that using
rename in bash, preferably, or shell Parameter expansion.