Executing Sketch via Linux Command Line?

If you are trying to script multiple sketches and don’t mind exporting them first, then here is a previous related discussion of writing a launcher script for multiple sketches.

The example launcher script is python, not bash, and it uses the self-contained app form rather than the raw sketch with processing-java.

You might also be interested in programs for managing multiple sketches, like the Processing Showcase: