I use Synology as storage for films from CCTV cameras. After copying a file from the CCTV system to Synology, I convert it to the AVI format. So my files have names like this:
10.01.07-10.01.48[M][@0][0].dav.avi
I want to rename it recursively from the names like above for names like this:
10.01.07-10.01.48.avi
Please notice that each filename consist always the same part [M][@0][0].dav.avi
But the problem is that there is no rename
command in Synology shell (it sh
NOT bash
)
I tried to use find
command in many different syntaxes but without success. Can You help me to find out solution?