Hi Mayur and welcome to LinuxQuestions!
Here is an example:
Code:
sed 's/@CURRANGE("[^"]*","[^"]*")/@CURRANGE("new_string_one","new_string_two")/g' file
where the expression [^"]* means zero or any number of characters different than ". This ensures that two or more expressions in the same line (if any) are changed accordingly. Example:
Code:
$ cat file
text @CURRANGE("any string","yet another string") text @CURRANGE("whatever","235472934629746") text
$
$ sed 's/@CURRANGE("[^"]*","[^"]*")/@CURRANGE("new_string_one","new_string_two")/g' file
text @CURRANGE("new_string_one","new_string_two") text @CURRANGE("new_string_one","new_string_two") text
Use the -i option of sed if you want to edit the file in place. Use -i.bck to keep a backup copy of the original file, that will be named by adding the (custom) suffix .bck. Hope this helps.