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!

translate

Status
Not open for further replies.

fluid11

IS-IT--Management
Jan 22, 2002
1,627
US
I have a bind document called named.domain.com. I want to change all of the "domain.com" instances in the file to "domain.net" and then send the output to a different file. It seems like the "tr" command is the way to go, but I can't get the syntax right. I figured it would be something like this....

tr '[&quot;domain.com&quot;]' '[&quot;domain.net&quot;]' < named.domain.com > named.domain.net

Any ideas how to do it?

Thanks,
Chris
 
I figured it out....

sed 's/domain.com/domain.net/g' named.domain.com > named.domain.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top