Java for Shell Scripting
Yes, you read the title right.
2 min readDec 29, 2023
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…