Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zmv exits from function
On Sat, Dec 30, 2023 at 9:43 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> I'm using zmv to rename files in a directory tree recursively via a
> 'for' loop which visits each subdirectory.
Incidentally, unless your "f" function is doing something non-obvious,
zmv can recursively search directories all by itself.
Try (without your "for" wrapper and all the "cd"-ing):
zmv -n '(*/)#(*).(SNT|MES)' '$1$2.eml'
If that looks like it would do the right thing, remove the "-n".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author