[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] find exec my own .sh file, issues
- Subject: [ale] find exec my own .sh file, issues
- From: mike at trausch.us (Michael B. Trausch)
- Date: Sun, 26 Jun 2011 23:26:13 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
On Sun, 2011-06-26 at 23:21 -0400, Narahari 'n' Savitha wrote:
> devusr at devusrvm:~/IBM/WebSphere/AppServer/lib$ find . -name "*.jar"
> -exec bash -c '~/bin/findInJar.sh "{}" WorkManager'
> find: missing argument to `-exec'
>
> My findInJar.sh file will do some work but why is the find script
> failing I am not sure
You are missing an escaped ; at the end. Try something like this:
find . -name '*.jar' -exec bash -c \
'~/bin/findInJar.sh "{}" WorkManager' \;
The "\;" there terminates the parameter for the -exec command.
--- Mike