You just need to do a wildcard or regular-expression rename.
The most simple version would use wildcards like this:
rename FROM . TO *.txt
This is the regular expression version which does exactly the same thing and is probably overkill in this situation:
rename REGEXP PATTERN (.).[^.] TO \1.poo
To explain the regular expression:
.* -- Means match anything. ( . Means anything; * Means match the previous thing zero or more times. )
. -- Means match one actual .
[^.]* -- Means match anything that isn't a . ( [^x] means match any character that isn't x; * Means match the previous thing zero or more times. )
\1 -- Refers back to the thing in brackets, i.e. everything that the (.*) part matched.
In theory the regular expression is slightly better because it allowed me to ensure that the last . was the one which was matched. (So there is no risk of renaming Hello.There.csv to Hello.csv rather than Hello.There.txt.) In practice it looks like the . wildcard does this automatically and it's not something you need to worry about.
While on the subject, if you're doing an inline-rename (i.e. select a file and press F2), you can quickly highlight just the extension part by pressing Ctrl-e.
Or you can select just the extension by pressing F2 a second time. A third press of F2 selects the entire name and subsequent presses starts the process over.
My ya'll have been busy on this Sunday morning, didn't anyone go to bed last night? lol
[quote]Or you can select just the extension by pressing F2 a second time. A third press of F2 selects the entire name and subsequent presses starts the process over.[/quote]If you have enabled the Hide file extension in the Filename column option (in your folder formats), this method will not work.
[quote]While on the subject, if you're doing an inline-rename (i.e. select a file and press F2), you can quickly highlight just the extension part by pressing Ctrl-e.[/quote]If you have enabled the Hide file extension in the Filename column option (in your folder formats), this method will work.