sed editor ?
DEar friends.
I want to use sed editor to change a line in file1.
in a bash script file RES_DATA_FILE name is taken and, I want to use this name in sed editor as in the following.
RES_DATA_FILE=$(ls -t1 test* | head -1)
(sed 's/read-data/read-data $RES_DATA_FILE/' file1> file2)
sed editor changing the sitring as "read-data $RES_DATA_FILE". $ operator does not work.
I woould be pleased if you could help.
thank you.
note: thank you very much *Mr. C.* for your answer to my previous question.
|