I have an xml file:
<AutoData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>
and I have to remove the portion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" only.
I tried using sed... (10 Replies)
Hi All,
i have an XML file like :-
<RequestBillsRsp version="1.0"><BillSummaryData><AgreementNumberFull>13-WY-8425-2</AgreementNumberFull><AgreementNumberAbbr>WY84252</AgreementNumberAbbr><LineOfBusiness>F</LineOfBusiness><Line></Line>
This is a continuous pattern. From this I need to... (6 Replies)
I need some help in editing a xml file, I have 2 xml files, One is Master.xml and other is a upgrade.xml. I want to moved all the values from upgrade.xml to Master.xml. challenge is upgrade.xml might have similar values, changed values and also new values.
So the script should find and replace or... (1 Reply)
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
HI All,
I have to split a xml file into multiple xml files and append it in another .xml file. for example below is a sample xml and using shell script i have to split it into three xml files and append all the three xmls in a .xml file. Can some one help plz.
eg:
<?xml version="1.0"?>... (4 Replies)
Hi All,
I have attached the original file and the file that I have edited, please have a look.
The files are named as follows original.xml and updated.xml
The chunk of data that we don’t we need is below
At the start of the file: The below data is not required
<Data... (3 Replies)
Hi All,
I have two xml files.
One is having below input
<NameValuePair>
<name>Daemon</name>
<value>tcp:7474</value>
</NameValuePair>
<NameValuePair>
<name>Network</name>
<value></value>
</NameValuePair>
... (2 Replies)
Hi All,
We need to split a large xml into multiple valid xml with same header(2lines) and footer(last line) for N number of letterId.
In the example below we have first 2 lines as header and last line as footer.(They need to be in each split xml file)
Header:
<?xml version="1.0"... (5 Replies)
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
I want to write a one line script that outputs the result of multiple xml tags from a XML file. For example I have a XML file which has below XML tags in the file:
<EMAIL>***</EMAIL>
<CUSTOMER_ID>****</CUSTOMER_ID>
<BRANDID>***</BRANDID>
Now I want to grep the values of all these specified... (1 Reply)
Discussion started by: shubh752
1 Replies
LEARN ABOUT DEBIAN
iwatch
IWATCH(1) General Commands Manual IWATCH(1)NAME
iwatch - a realtime filesystem monitor / monitor any changes in directories/files specified
SYNOPSIS
iwatch [options]
DESCRIPTION
This manual page documents briefly the iwatch command. iWatch is a realtime filesystem monitoring program. It's a simple perl script to
monitor changes in specific directories/files and send email notification immediately. It reads the dir/file list from xml config file and
needs inotify support in kernel (Linux Kernel >= 2.6.13).
OPTIONS
Usage for daemon mode of iWatch:
iwatch [-d] [-f <config file>] [-v] [-p <pid file>]
In the daemon mode iWatch has the following options:
-d Execute the application as daemon. iWatch will run in foregroud without this option.
-f <configfile.xml>
Specify alternative configuration file. Default is /etc/iwatch/iwatch.xml.
-p <pidfile>
Specify an alternate pid file (default: /var/run/iwatch.pid)
-v Be verbose.
Usage for command line mode of iWatch:
iwatch [-c command] [-e event[,event[,..]]] [-h|--help] [-m <email address>] [-r] [-s <on|off>] [-t <filter string>] [-v] [--version] [-x
exception] [-X <regex string as exception>] <target>
In the command line mode iWatch has the following options:
-c <command>
You can specify a command to be executed if an event occurs. For details about the string format take a look at
/usr/share/doc/iwatch/README.gz.
-C <charset>
Specify the charset (default is utf-8).
-e <event[,event[,..]]>
Events list. For details about possible events take a look at /usr/share/doc/iwatch/README.gz.
-h, --help
Print help message.
-m <emailaddress>
Contact point's email address. Without this option, iwatch will not send any email notification (obviously).
-r Recursivity of the watched directory.
-s on|off
Enable or disable reports to the syslog (default is off/disabled).
-t <filter>
Filter string (regex) to compare with the filename or directory name.
-x <exception file or directory>
Specify the file or directory which should not be watched.
-X <regex string as exception>
Specify a regex string as exception.
USAGE EXAMPLES
% iwatch /tmp
Monitor changes in /tmp directory with default events.
% iwatch -r -e access,create -m root@localhost -x /etc/mail /etc
Monitor only access and create events in /etc directory recursively with /etc/mail as exception and send email notification to
cahya@localhost.
% iwatch -r -c (w;ps -ef)|mail -s '%f was changed' root@localhost /bin
Monitor /bin directory recursively and execute the command.
% iwatch -r -X '.svn' ~/projects
Monitor ~/projects directory recursively, but exclude any .svn directories inside. This can't be done with a normal '-x' option
since '-x' can only exclude the defined path.
AUTHOR
iwatch was written by Cahya Wirawan <cahya@gmx.at>.
This manual page was written by Michael Prokop <mika@debian.org> for the Debian project (but may be used by others).
IWATCH(1)