Hi,
I have the following variable in bash:
var1="this is ok"
and in a file I want fo make in all lines the subst:
_day 23. 45. 56. ...
to
this is ok_day 23. 45. 56.
so I add var1 to the start of the line
I tried with this
sed -e "s/_/${var1}"_"/g" ${filename}
but i get errors
I do not know if this is because the spaces. I aslo chaged /
to |
on sed but nothing
any hints?
Thanks