Search Results

Search: Posts Made By: wamqemail2
13,052
Posted By Scrutinizer
Try awk '$1=="name"...
Try
awk '$1=="name" {f=($2=="GoogleOverhaul")?1:0} f && $1~/"staging"/{$2="off"}1' RS=\< ORS=\< FS=\> OFS=\> file

If it gets more complicated it may be better to use specializer XML tooling....
...
13,052
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

Try awk '/<name>GoogleOverhaul<\/name>/ {L=1}
/<\/widget>/ {L=0}
L && /staging.*on/ ...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy