I have few files which contain a string like JOY_DOL_XXX
at many places. Which I wanted to replace with another string with double quotes as "JOY.DOL.XXX"
, but here XXX
can be anything e.g. MAN
, CAT
, DOG
so in this case I wanted to write a script which replaced this accordingly without specifying it explicitly.
For example:
JOY_DOL_MAN ==> "JOY.DOL.MAN"
JOY_DOL_CAT ==> "JOY.DOL.CAT"
Could you please help me out, how shall I do it.