Hello Mr Don Thanks for this useful code. But could you please help me with some doubts.
1. Is "copy" variable, Part of block (2) ?, which will have a value 1 .That will print as default.
2. What is the purpose of block (3) . As no print statement or default 1 is present.
3.Which part of code is printing other lines like <VARIABLE....<INCOND......
Thanks,
Hi All,
I have been working on something that doesn't seem to have a clear regex solution and I just wanted to run it by everyone to see if I could get some insight into the method of solving this problem.
I have a flat text file that contains billing records for users, however the records... (5 Replies)
111111111100000000001111111111
123232323200000010001114545454
232435424200000000001232131212
342354234301000000002323423443
232435424200000000001232131212
2390898994200000000001238908092
This is the record format.
From 11th position to 20th position in a record there are 0's occuring,and... (6 Replies)
Hi Gents,
I have a file 1 like this
1 1000 20
2 2000 30
3 1000 40
5 1000 50
And I have other file 1 like
2 1
I would like to get from the file 1 the complete line which are in file 2, the key to compare is the column 2 then output should be.
2 2000 30.
I was trying to get it... (5 Replies)
Hi
I have xml file with multiple records and would like to extract records from xml with specific condition if specific tag is present extract entire row otherwise skip .
<logentry revision="21510">
<author>mantest</author>
<date>2015-02-27</date>
<QC_ID>334566</QC_ID>... (12 Replies)
Hello everybody,
I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings..
The original XML files contain the source code for... (12 Replies)
Hi
I have two lists of patterns named A and B consisting of around 200 entries in each and I want to extract all the sentences from a big text file which match atleast one pattern from both A and B.
For example, pattern list A consists of :
ama
ani
ahum
mari
...
...
and pattern... (1 Reply)
awk 'NR==FNR{arr;next} $0 in arr' /tmp/Data_mismatch.sh /prd/HK/ACCTCARD_20160115.txt
edit by bakunin: seems that one CODE-tag got lost somewhere. i corrected that, but please check your posts more carefully. Thank you. (5 Replies)
more data.txt
i need this exacted from data.txt
This is the command i tried
sed -n "/Start_of_DISK_info:\/u/,/End_of_DISK_info:\/u/p" data.txtBut, unfortunately it does not do an exact match. Instead, it prints text between both these strings /u & /u/tmp like below.
i need this... (6 Replies)
Hi everyone,
So i'm struggling with an xml (log file) where we get information about some devices, so the logfile is filled with multiple "blocks" like that.
Based on the <devId> i want to extract this part of the xml file. If possible I want it to have an script for this, cause we'll use... (5 Replies)
Discussion started by: Pouky
5 Replies
LEARN ABOUT DEBIAN
update-xmlcatalog
UPDATE-XMLCATALOG(8) xml-core UPDATE-XMLCATALOG(8)NAME
update-xmlcatalog - maintain XML catalog files
SYNOPSIS
update-xmlcatalog --add --root --package package --type type --id id
update-xmlcatalog --del --root --package package --type type --id id
update-xmlcatalog --add --package package --local local --type type --id id
update-xmlcatalog --del --package package --local local --type type --id id
update-xmlcatalog --add --local local --file file --type type --id id
update-xmlcatalog --del --local local --file file --type type --id id
update-xmlcatalog --help
DESCRIPTION
update-xmlcatalog add entries to and removes entries from the root XML catalog file, a package XML catalog file or a local XML catalog
file.
OPTIONS --add
Adds the entry to the root XML catalog file, a package XML catalog file or a local XML catalog file. If the XML catalog file does not
exist yet, it is automatically created.
--del
Deletes the entry from the root XML catalog file, the package XML catalog file or the local XML catalog file. A resulting empty XML
catalog is not automatically deleted from the filesystem.
--file file
Indicates a local filename.
--id id
Indicates the XML catalog file entry identifier.
--local local
Indicates a local XML catalog file.
--package package
Indicates a package XML catalog file.
--root
Indicates the root XML catalog file.
--type type
Indicates the XML catalog file entry type (public, system, uri).
--help
Displays the usage information.
NOTES
update-xmlcatalog is the de-facto standard tool to be used to maintain XML catalog files on a Debian system, similar to that
update-catalog(8) is the standard tool to be used to main SGML catalog files on a Debian system. A Debian XML Policy document to this
effect is currently under development.
update-xmlcatalog and xmlcatalog(1) are incompatible. The former has an internal database of all the entries in all the XML catalog files
it maintains and regenerates the indicated XML catalog file completely from scratch upon an update. The latter updates the indicated XML
catalog file directly. This means that any change made to an XML catalog file using xmlcatalog(1) is overwritten the next time that XML
catalog file is updated using update-xmlcatalog.
SEE ALSO
/usr/share/doc/xml-core/README.Debian
AUTHOR
Ardo van Rangelrooij <ardo@debian.org>
perl v5.14.2 2008-10-14 UPDATE-XMLCATALOG(8)