find: missing argument to -exec

后端 未结 11 2154
心在旅途
心在旅途 2020-11-28 17:52

I was helped out today with a command, but it doesn\'t seem to be working. This is the command:

find /home/me/download/ -type f -name \"*.rm\" -exec ffmpeg -         


        
11条回答
  •  遥遥无期
    2020-11-28 18:25

    I figured it out now. When you need to run two commands in exec in a find you need to actually have two separate execs. This finally worked for me.

    find . -type f -name "*.rm" -exec ffmpeg -i {} -sameq {}.mp3 \; -exec rm {} \;
    

提交回复
热议问题