I have data as below which I want to pass directly to Java main method from shell script at once.
1 firstfile.txt Success
2 secondfile.txt Failed
3 thirdfile.txt Success
I know I can call java as below where var1
and var2
represent just single strings:
java $myJava "$var1" "$var2"
But is it possible that I pass the data above as arrays to Java?