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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sed question 1

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
IL
Hi,
I need to replace one string with another. How can sed do it?

replace this: myRoot.isAskNPImport()==true

with this: myRoot.isNPImport()==true && myRoot.getServiceType()!=\"PBX\"

Thanks in advance.
Vadim
 
sed -e 's/myRoot.isAskNPImport()==true/myRoot.isNPImport()==true \&\& myRoot.getServiceType()!=\\"PBX\\"/g' myFile.txt

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top