I have created A GUI using java and netbeans IDE, in that java code i have set value of a variable path which consists of path of directory such as path=/home/usr/jai/newfolder and i have a shell script file with extension .sh in that a command is mentioned which access many files mentioned in newfolder.
My question is how to use path variable in that shell script file so that I can access all those files mention in newfolder and execute that file using java code and I know how to execute script file using java code but I am unable to access the variable value in shell script file.
$<n>wherenis the position where the variable is located in arguments of the script.