Hi all!
I am all new to shell scripting.
I am trying to make a script that searches for a folder and then adds it to PATH
First I am serching for the folder:
find /usr/local -name "jdk1.6*" -type d
If version 1.6 of Suns java is installed I get the folder printed.
How do I get hold of the printed string?
After that I want to add it to my PATH:
PATH="printed_string/bin:${PATH}"
With the PATH for java set I can run my java app:
java -jar Memo1.0.0.jar
My problem is how I get hold of the printed string from "find".
Many thanks in advance!
Marcux