The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-27-2007
wip_vasikaran wip_vasikaran is offline
Registered User
 

Join Date: Jul 2006
Posts: 14
find and replace in XML

Hi

I need one clarication..

I have an xml having many entries like this..

<Cust_Name>Tom Cruise</Cust_Name>

I want to rename this to

<Cust_Name>TEST</Cust_Name>

Pls let me know how to do it..

I was trying some basic commands like
grep 'Cust_Name' * | tr '>' ',' | tr '<' ',' | cut -d ',' -f3| sed "s/[0-9a-zA-Z_]/TEST/g"

The bold part is not working..any idea
Reply With Quote
Forum Sponsor