On 2023-01-16 19:19, Simon Becherer wrote:
Am 16.01.23 um 11:12 schrieb Andrei Borzenkov:
On Mon, Jan 16, 2023 at 11:07 AM Simon Becherer <> wrote:
Hi andrei,
well i was thinking about something similar to the dos "rename" command: ren *.mi ??????.mi should (if i remember correct) work in the dos days.
and i am sorry, i have never understood the deeper internals of patterns/expressions how they get expanded in shell. i have read, but as more i read as more unclear it get to me.
Then you should simply remember that msdos and unix/linux do this very differently. In msdos the pattern is given to the program you call, and this program interprets the pattern as it likes. In Linux, the pattern is interpreted by the shell before it calls the program, and then it calls the program, with a huge command line with all the patterns expanded (it may be too big to fit, there was a 65K limit). If you have difficulties with this (I still have), then use a gui. Use krename, seriously. I do. It is as safe as can be. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)