[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] find -exec
- Subject: [ale] find -exec
- From: jknapka at earthlink.net (Joseph A Knapka)
- Date: Sun, 14 Jul 2002 16:40:44 -0600
Kevin Krumwiede wrote:
>
> What's wrong with this command:
>
> # find ./ -name '*.m3u' -exec 'cat {}'
>
> or even this one:
>
> # find ./ -name '*.m3u' -exec echo foo
>
> I'm getting "find: missing argument to '-exec'" with Mandrake's
> findutils-4.1.7-2mdk.
You need a ';' to close the -exec:
# find ./ -name '*.m3u' -exec echo foo \;
Otherwise find doesn't know where the command to be executed
ends (in the general case there could be more find options
after the -exec). Though admittedly, in this case it ought
to be able to figure it out :-P
Cheers,
-- Joe
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.