scripting

Writing Groovy scripts for automation and rapid prototyping.

Groovy Execute Shell Command – Quick Recipes with 10+ Examples

Quick copy-paste recipes to groovy execute shell command calls from scripts. 12 tested examples covering one-liners, output capture, piping, cross-platform tricks, and common CLI tool invocations. “The best shell scripts are the ones you rewrite in a real language – and Groovy makes that rewrite shorter than the original script.” Brian Kernighan, Unix Philosophy Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner-Intermediate | Reading Time: 16 minutes This is not a detailed guide on ... Read More

Groovy Scripting for Automation – 12 Tested Examples for Practical Tasks

Groovy scripting for automation with 12+ examples. Covers CLI parsing, file processing, CSV/JSON scripts, database tasks, and @Grab setup. Tested on Groovy 5.x. “The best automation script is the one you didn’t have to compile, package, or deploy. Just write it and run it.” Dave Thomas, The Pragmatic Programmer Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes Why Groovy for Scripting and Automation? If you’ve ever written ... Read More

Groovy Grape – Dependency Management for Scripts | 12 Tested Examples

Groovy Grape dependency management with @Grab. 12+ examples covering @GrabConfig, @GrabExclude, @GrabResolver, custom repos, and Grape cache. Groovy 5.x. “The best scripts are the ones that just work – no build files, no setup, no excuses. Groovy Grape makes that possible.” Guillaume Laforge, Groovy Project Lead Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes What is Groovy Grape? Ever wanted to use Apache Commons, Google Guava, or ... Read More