I need to serach and replace a strings between single quote in a file.
My file has :
location='/data1/test.log' and the output needed is
location='/data2/test_dir/test.log'
pls if anybody know this can be done in script sed or awk.
I have a script, but it's error :
sed -i "s/'[^']*'/`echo /data2/test_dir/test.log`/g" file_name