![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| modifying grep to return latest files | ragha81 | Shell Programming and Scripting | 5 | 04-02-2009 11:16 AM |
| .bashrc files modifying the PS1 variable? | raidkridley | Shell Programming and Scripting | 5 | 11-10-2008 10:54 AM |
| Modifying command for Tar.gz Files. | openspark | Shell Programming and Scripting | 2 | 08-28-2008 05:53 PM |
| modifying grep to get files only within last 2 hrs | ragha81 | Shell Programming and Scripting | 3 | 01-11-2007 07:11 PM |
| How can I ... (Modifying large ASCII files) | hviktor | UNIX for Dummies Questions & Answers | 2 | 07-20-2001 10:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
modifying xml files using sed
Hello,
I have lots of xml files in the same format and I need to modify a xml tag in these files. i loop over the files and apply sed to the files to make the modification but CPU goes to %100 while doing this. I think I'm doing something wrong. Here is my onliner: Code:
for f in $( find . -name "*.xml" ); do sed -n "s/<idle>600<\/idle>/<idle>900<\/idle>/p" $f >> $f; echo "file:" $f;done thanks in advance... |
![]() |
| Bookmarks |
| Tags |
| sed, xml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|