First use shift
to “consume” the first argument, then pass "$@"
, i.e., the list of remaining arguments:
#my_script.sh
...
shift
java MyApp "$@"
First use shift
to “consume” the first argument, then pass "$@"
, i.e., the list of remaining arguments:
#my_script.sh
...
shift
java MyApp "$@"