Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh - rename THIS=THAT - mv $a $a:s/THIS/THAT/



Hi!

Quoting Gerald Skerbitz (gsker@xxxxxxxxxxxxxxxxxxxx):
> > 	$ ls
> > 	lahDIdah	DIagnose	LadyDI
> > 	$ rename * DI=di
> > 	$ ls
> > 	lahdidah	diagnose	Ladydi
> for a in *DI*
> mv $a $a:s/DI/di

That's gotta be the most elegant solution!  :-)
Thanks!

Sven



Messages sorted by: Reverse Date, Date, Thread, Author