I do have a little problem with my linux script.
I have one file (wrapper.PLACEHOLDER) with some java wrapper informations. In one spot the absolute java path is needed.
I know that java always is located ../java from the wrapper.PLACEHOLDER file but that can be located anywhere on the filesystem.
I can not use the JAVA_HOME variable (I tried that before).
So my idea was to use the sed command to replace the word PLACEHOLDER inside the wrapper.PLACEHOLDER with the result of 'pwd ../java' command.
The problem is, that the / signs inside the path-string will result in a syntax error.
I tried this command :
sed "s/PLACEHOLDER/"`pwd ../java/`"/" wrapper.PLACEHOLDER > wrapper.conf
But the result is :
sed: -e Ausdruck #1, Zeichen 16: unknown option to `s'
(sorry the linux system I am working on is in German)
Does anyone has any ideas?
Best regards and many greetings,