Pol <xtekhne@xxxxxxxxx>:
> I would like to change file names while copying or moving.
> In my case, i would change all files ending with ".lyx14" into ".lyx".
> Any hints?
In this case, a simple loop would do:
for i in *.lyx14; do mv -- "$i" "${i:r}.lyx"; done
If you need to do more complex renames, see:
% man zshcontrib | less -p zmv
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925