I’ve made a java program that takes input from stdin and returns output to stdout, which runs perfectly fine using:
cat inputfile | java -jar whatever.jar <args>
I want to make a bash wrapper script to put in my ~/bin
so I can just run
cat inputfile | whatever
, which would perform exactly the same function.
How can I make a wrapper script that just passes stdin unmolested to the jar, while simultaneously receiving stdout back to echo to the CLI?