[ale] find exec my own .sh file, issues

Michael B. Trausch mike at trausch.us
Sun Jun 26 23:26:13 EDT 2011


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



More information about the Ale mailing list