Java for Shell Scripting

Yes, you read the title right.

Brian Schlining

--

Photo by Cookie the Pom on Unsplash

Medium served up the article, Revisiting Java for Shell Scripting, in my feed. Since I frequently use the JVM for scripting (mostly using scala-cli), I took the author’s suggestions for a spin. In brief, this was what was proposed in the article:

#!/usr/bin/env -S java --source 21 --enable-preview

void main() {
System.out.println("Hello…

--

--

Brian Schlining

Polyglot coder. Deep-sea Researcher. Zazen aficionado. I think squids are pretty cool.