On Wed, Oct 11, 2000 at 08:05:13AM +1100, Rodos wrote:
> Problem is that find is not understanding the -exec, I assume it has
> something to do with escaping but no matter what I try it just keeps
> failing.
> 
> find . -maxdepth 1 -name "2*" -exec ./slideshow {};
> find: missing argument to `-exec' 
> 
> Any ideas what I am missing or how to escape it?

The shell is interpreting the final semicolon before the find command has a
chance to get to it. Instead, use

        find . -maxdepth 1 -name "2*" -exec ./slideshow {} \;

(i.e. escape the semicolon from the shell).

Cheers,
Malcolm

-- 
Malcolm Tredinnick            email: [EMAIL PROTECTED]
CommSecure Pty Ltd

PGP signature

Reply via email to