Raised a bump on my head trying to figure this one out
I have an xml file which needs to be edited, removing an entire property section in the work. Here's what the target section layout looks like:
Now, sed-deleting all from <property name="something"> to the first </property> tag is a fairly straightforward affair:
...but encompassing the SECOND </property> tag is not quite so straightforward; and I can't quite decipher where the tweak goes to make things turn...
A quick note, anyone?
Thanks again
Last edited by LinQ; 10-04-2014 at 12:19 PM..
Reason: Quote tags ====>>>> CODE tags
I need to get a section of a file based on 2 params. I want the part of the file between param 1 & 2. I have tried a bunch of ways and just can't seem to get it right. Can someone please help me out.....its much appreciated. Here is what I have found that looks like what I want....but doesn't... (12 Replies)
hello all,
I have a file like this:
section 1
blah1
blah2
section 2
blah1
blah2
section 3
blah1
blah2
and I want to use sed to duplicate section 2, like this:
section 1
blah1
blah2
section 2
blah1
blah2
section 2
blah1 (2 Replies)
I have a script that produces an output containing '/.ssh'.
I am trying to find a way of parsing only this data from a single line, without removing any other special characters contained within the output as a result of the parse.
Any help would be appreciated (6 Replies)
I'm currently trying to write a ksh or csh script that would change the name of a file found in directories and attach to the name an incrementing three digit number.
I know how to write a script that will go:
000, 001, 002, 003, etc
The twist is I need more increments then allowed by a 3... (11 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
I'd like to remove (do a pattern or precise replacement - this I can handle in SED using Regex )
---AFTER THE 1ST Occurrence ( i.e. on the 2nd occurrence - from the 2nd to fourth occurance ) of a specific string : type 1
-- After the 1st occurrence of 1 string1 till the 1st occurrence of... (4 Replies)
Hello
I've got a string of text with a number in pence, e.g. 0.52p, I need to remove the 'p' so that it just reads 0.52 without of course removing all the other 'p' characters.
Many thanks (1 Reply)
Hello,
I'm trying to remove an arbitrary number of semicolons at the end of each line in the input file.
Input:
44;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;
45;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;;;
... (6 Replies)
Hello.
I am trying to modify a config file which is in windows *.ini type file.
I have found a piece of code here :linux - Edit file in unix using SED - Stack Overflow
As I can't make it doing the job , I am trying to find a solution step by step.
here a modified sample file : my_sample.ini... (1 Reply)
Hi, I have following data in a file. Not all but most of the lines start with letter 'T' has 8 SPACES from column 121 to 128 and I want to replace that portion with some dummy value. Is it possible through sed?
Input File:-
T1111111111111A 20140310000000005076358416369283 AAAAA ... (6 Replies)
Discussion started by: jnrohit2k
6 Replies
LEARN ABOUT REDHAT
xmdeactivateprotocol
XmDeactivateProtocol(library call) XmDeactivateProtocol(library call)
NAME
XmDeactivateProtocol -- A VendorShell function that deactivates a protocol without removing it
SYNOPSIS
#include <Xm/Xm.h>
#include <Xm/Protocols.h>
void XmDeactivateProtocol(
Widget shell,
Atom property,
Atom protocol);
DESCRIPTION
XmDeactivateProtocol deactivates a protocol without removing it. It updates the handlers and the property if the shell is realized. It is
sometimes useful to allow a protocol's state information (callback lists, and so on) to persist, even though the client may choose to tem-
porarily resign from the interaction. The main use of this capability is to gray/ungray f.send_msg entries in the MWM system menu. To
support this capability, protocol is allowed to be in one of two states: active or inactive. If protocol is active and shell is realized,
property contains the protocol Atom. If protocol is inactive, Atom is not present in the property.
XmDeactivateWMProtocol is a convenience interface. It calls XmDeactivateProtocol with the property value set to the atom returned by
interning WM_PROTOCOLS.
shell Specifies the widget with which the protocol property is associated
property Specifies the protocol property
protocol Specifies the protocol atom
For a complete definition of VendorShell and its associated resources, see VendorShell(3).
RELATED mwm(1), VendorShell(3), XmActivateProtocol(3), XmDeactivateWMProtocol(3), and XmInternAtom(3).
XmDeactivateProtocol(library call)