LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2010, 11:20 AM   #1
Exise
LQ Newbie
 
Registered: Jan 2010
Location: Netherlands
Distribution: Ubuntu (server) & RPi
Posts: 5

Rep: Reputation: 0
Change mutiple xml files


I'm trying to change a line of a bunch of xml files (more than 800).

What I want is to change this line:

Code:
<variable name="reliability" size="1">96</variable>
to
<variable name="reliability" size="1">0</variable>
This is just an example, and the number can be anything fom 0 to 100. The problem is, I dont have any experience with scripting etc. Could someone help me out?
 
Old 04-21-2010, 11:38 AM   #2
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
If it is restricted to change the number only sed can be useful and if there are many modification I will suggest you to use perl along with a XML module to change this
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GZIP mutiple files at any one time Azzath General 2 10-18-2007 05:20 AM
copy a file to mutiple files Radical-Rick Programming 6 07-11-2006 03:47 PM
Inserting Text into Mutiple HTML Files patisawsome Linux - Software 2 12-28-2005 01:49 AM
Command to select and move mutiple files from list in text file steve.paris Linux - Newbie 11 11-27-2005 12:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration