Moving last
I have some files in this format:
AAA BBB CCC LAST.txt
AAA BBB CCC DDD LAST.txt
AAA BBB CCC DDD EEE LAST.txt
They have different lengths but the common thing is I want to move LAST to the front:
AAA BBB CCC LAST.txt --> LAST AAA BBB CCC.txt
AAA BBB CCC DDD LAST.txt --> LAST AAA BBB CCC DDD.txt
AAA BBB CCC DDD EEE LAST.txt --> LAST AAA BBB CCC DDD EEE.txt
Appreciate your guidance how to do this. Thanks.
AAA BBB CCC LAST.txt
AAA BBB CCC DDD LAST.txt
AAA BBB CCC DDD EEE LAST.txt
They have different lengths but the common thing is I want to move LAST to the front:
AAA BBB CCC LAST.txt --> LAST AAA BBB CCC.txt
AAA BBB CCC DDD LAST.txt --> LAST AAA BBB CCC DDD.txt
AAA BBB CCC DDD EEE LAST.txt --> LAST AAA BBB CCC DDD EEE.txt
Appreciate your guidance how to do this. Thanks.
Replace: (.*) (.*)
with: \2 \1
Use regular expressions
with: \2 \1
Use regular expressions
Reply to #2:
Thanks David!
Thanks David!