How do I redirect stdin from a shell script to a command in the shell script? I am trying to pass the stdin to a java System.in stream.
I want to replace
find . -type f | $JAVA_HOME/bin/java com.domain.BatchProcess
with
find . -type f | ./batch.sh