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

The Don Lachlan ale-at-ale.org at unpopularminds.org
Sun Jun 26 23:48:55 EDT 2011


On Sun, Jun 26, 2011 at 11:21:22PM -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'

You're missing a trailing semi-colon as Michael said. Also, you're going to
run into trouble exec'ing bash from find. Make sure bin/findInJar.sh execs
bash or create a wrapper that does, then it's

  $ find . -name "*.jar" -exec ~/bin/findInJar.sh {} WorkManager \;

or

  $ find . -name "*.jar" -exec ~/bin/findInJar_wrapper.sh {} WorkManager \;

Skip all the quotes, running bash from exec, just make it simple.

-L


More information about the Ale mailing list