Is it possible to modify the arguments passed to a bash program ? and then pass them to a Java program ?
I know we can access all the arguments passed to a bash program by "$@" and I can pass them to Java program like java com.myserver.Program "$@". But is it possible to modify value of certain arguments inside "$@" and then call the above java program with "$@" ?
I also know you can use "$@[1]" to access the value of arguments but how can we iterate over them and change the value at the proper position ?
I also know this :
for arg
do
....
done
But inside the do loop how can the value of argument be modified and then java program be called ?