On 2026-02-20 07:19, Greg Wooledge wrote:
hobbit:~$ cd /tmp
hobbit:/tmp$ touch 1.foo 2.foo 3.foo
hobbit:/tmp$ rename 's/\.foo$/.bar/' *.foo
hobbit:/tmp$ ls -l [123]*
-rw-rw-r-- 1 greg greg 0 Feb 20 07:16 1.bar
-rw-rw-r-- 1 greg greg 0 Feb 20 07:16 2.bar
-rw-rw-r-- 1 greg greg 0 Feb 20 07:16 3.bar
It's not quite as simple as you wanted, but it'll get the job done.
There's a great deal *more* it can do as well.
Personally since I'm comfy with Vi, I like vidir. Just edit the
directory as if it were a .txt file and save.
Mike