Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SED command

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I'm looking to do a find/replace on a bunch of files.
I'm looking for an instance that has the variable $USTART_CAMP concatenated with sfx and I want to replace it with the variable $DEST_CAMP concatenated with sfx. I have tried both of these ways below, neither of which has worked. Any help would be greatly appreciated. Thanks

Code:
$SED 's/'${USTART_CAMP}'sfx/'${DEST_CAMP}'sfx/' $[URL unfurl="true"]WWW_SERVER_DEFAULTS[/URL] > $[URL unfurl="true"]WWW_SERV[/URL]
ER_DEFAULTS_TEMP

Code:
$SED 's/'${USTART_CAMP}sfx'/'${DEST_CAMP}sfx'/' $[URL unfurl="true"]WWW_SERVER_DEFAULTS[/URL] > $[URL unfurl="true"]WWW_SERV[/URL]
ER_DEFAULTS_TEMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top