0

My security cameras recorder (located in distant place), FTP`s to my server video files after any event. It automatically creates sudirs with name containing date of day. Using find and ffmpeg commands, server converts DAV file to AVI and remove DAV file. After that, each video file has name like this:

19.38.41-19.38.55[M][@0][0].dav.avi

I want to change above name to format like this:

19-38-41.avi

How can I do it in the same "find" command line

mackowiakp
  • 203
  • 1
  • 4
  • 12

1 Answers1

0
find -name '*.dav.avi' -execdir rename ... {} \;

See "Rename multiple files in Unix" for the rename syntax.

Community
  • 1
  • 1
Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358