Issue
I want to replace '-Djava.library.path=""' with '-Djava.library.path="path"' in file named "file" using sed
sed -i 's/-Djava.library.path=""/-Djava.library.path="path"/g' -f file
returns
sed: 2: file: unescaped newline inside substitute pattern
What's wrong? Can someone help?
Solution
Changed to
sed -i 's/Djava.library.path=""/Djava.library.path="path"/' file
Now it works.
Answered By - Oleg Popov Answer Checked By - Senaida (WPSolving Volunteer)