Installing

If you use the binary distribution e.g. (groosh-0.3.0-bin.tar.gz).
Untar it and copy groosh-0.3.0.jar to your $GROOVY_HOME/lib.

Try the following script to check if it worked:

Have a look at the examples directory for more examples how to use
groosh.

Pre-requisites

Groosh is based on Groovy 1.5.0 or higher.

Documentation

The following example shows Groosh in action:

Another example :

Sometimes the name of a shell command conflicts with a Groovy method (for example ''grep''). This means that

does not execute the shell command, but the Groovy method grep(...).

As a workaround for that you may prefix any shell command with _ this means the example above becomes

The following example shows a more elaborate example. It uploads photos to a flickr account using the command line tool flickcurl. A photo set of this images is created and named after the current directory.