Print a pattern between the xml tags based on a search pattern
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
I need to feed the order number (Here in this example 939511) and it should display the text between <NJCustomer> and </NJCustomer>.
The input file is very large and i feel a solution in awk could be better.
I searched the forum and i got this code and seems it needs small modification and i am not sure what this code does.
I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
Hey folks!
I am new to shell-scripting, but I have a problem that I would like to solve using a script. I create very large html forms, used for randomized trials. In these forms, each question is supplied with a variable that looks something like this: PROJECT_formNN
Where NN is the question... (1 Reply)
Hi All,
Have a file contains multiple line with the following
file.txt
insert: akdkas job:ksdjf
command: aldfasdf asdfsdfa asdfas.sh
machine: asdfa
need to grep for insert and machine and print only "akdkas,asdfa"
cat file.txt | egrep "insert|machine" | awk -F: '{print $2}'
output ... (5 Replies)
Hello, I am using awk to split a file into multiple files using command:
nawk '{
if ( $1 == "<process" )
{
n=split($2, arr, "\"");
file=arr
}
print > file }' processes.xml
<process name="Process1.process">
... (3 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
I have a file with following data
<Field FieldName="CHCFA21_01_01" FieldType="Text">
<Output CapturedValue="">
<DataSource Name="" Value="" />
</Output>
</Field>
<Field FieldName="CHCFA21_01_02" FieldType="Date">
<Output CapturedValue="">
... (1 Reply)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT DEBIAN
pdfseparate
pdfseparate(1) General Commands Manual pdfseparate(1)NAME
pdfseparate - Portable Document Format (PDF) page extractor
SYNOPSIS
pdfseparate [options] PDF-file PDF-page-pattern
DESCRIPTION
pdfseparate extract single pages from a Portable Document Format (PDF).
pdfseparate reads the PDF file PDF-file, extracts one or more pages, and writes one PDF file for each page to PDF-page-pattern, PDF-page-
pattern should contain %d
The PDF-file should not be encrypted.
OPTIONS -f number
Specifies the first page to extract. If -f is omitted, extraction starts with page 1.
-l number
Specifies the last page to extract. if -p is omitted, extraction ends with the last page.
-v Print copyright and version information.
-h Print usage information. (-help and --help are equivalent.)
EXAMPLE
pdfseparate sample.pdf sample-%d.pdf
extracts all pages from sample.pdf, if i.e. sample.pdf has 3 pages, it produces
sample-1.pdf, sample-2.pdf, sample-3.pdf
AUTHOR
The pdfseparate software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright 2005-2011 The Poppler Developers -
http://poppler.freedesktop.org
SEE ALSO pdfunite(1),
15 September 2011 pdfseparate(1)