find: missing argument to -exec

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-06-02T21:19:25Z Indexed on 2010/06/02 21:24 UTC
Read the original article Hit count: 170

Filed under:
|
|

Hello all,

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 -i {} -sameq {}.mp3 && rm {}\;

The shell returns

find: missing argument to `-exec'

What I am basically trying to do is go through a directory recursively (if it has other directories) and run the ffmpeg command on the .rm file types and convert them to .mp3 file types. Once this is done, remove the .rm file that has just been converted.

I appreciate any help on this.

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash