I need to rename files by swaping some text. I had for example :
eMail - 2015-11-28 1926.eml
second mail - 2016-07-26 1245.eml
third mL 2016-11-26 1410.eml
4-mail 2017-05-21 0105.eml
...
and I want them
2015-11-28 1926 eMail - .eml
2016-07-26 1245 second mail - .eml
2016-11-26 1410 third mL.eml
2017-05-21 0105 4-mail.eml
... a part of a way you could find here:
i tried
ls *.pdf | awk -F"[_.]" '{print "mv "$0" "$2"_"$1"."$3}' | sh
from >
swap filename example
that was running goog, but not practical for .eml
-files.
second swap filename example looks good too
but i am a bit stupid to solve the problem