03-19-2011
Danmero,
Your solution reveals the order number only...but my query is if the order number is there in the file corresponding <NJCustomer> & </NJCustomer> needs to be printed
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: pitagi
7 Replies
2. Shell Programming and Scripting
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)
Discussion started by: Roevhat
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: uniqme
5 Replies
4. Shell Programming and Scripting
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)
Discussion started by: chiru_h
3 Replies
5. Shell Programming and Scripting
i need to search for a pattern from a big file and print everything expect the next 6 lines from where the pattern match was made. (8 Replies)
Discussion started by: chidori
8 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: 100bees
2 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: nsuresh316
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Klasform
9 Replies
9. Shell Programming and Scripting
Hi all,
how print on columns when contain un pattern specific,
e.g.
$cat file1
3234 234 2323
number1 number2 number3
123 242 124
124 number2 324
424 543 626
number1 3463 234
534 345 number3
6756 345 2352
334 345 234
need output file1 way (2 Replies)
Discussion started by: aav1307
2 Replies
10. UNIX for Beginners Questions & Answers
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 MOJAVE
mpsmatrixsolvelu
MPSMatrixSolveLU(3) MetalPerformanceShaders.framework MPSMatrixSolveLU(3)
NAME
MPSMatrixSolveLU
SYNOPSIS
#import <MPSMatrixSolve.h>
Inherits MPSMatrixBinaryKernel.
Instance Methods
(nonnull instancetype) - initWithDevice:transpose:order:numberOfRightHandSides:
(void) - encodeToCommandBuffer:sourceMatrix:rightHandSideMatrix:pivotIndices:solutionMatrix:
Additional Inherited Members
Detailed Description
This depends on Metal.framework.
A kernel for computing the solution of a linear system of equations using the LU factorization resulting from a MPSMatrixDecompositionLU
kernel.
A MPSMatrixSolveLU finds the solution matrix to the system:
op(A) * X = B
Where op(A) is A**T or A. B is the array of right hand sides for which
the equations are to be solved. X is the resulting matrix of solutions.
Method Documentation
- (void) encodeToCommandBuffer: (nonnull id< MTLCommandBuffer >) commandBuffer(MPSMatrix *__nonnull) sourceMatrix(MPSMatrix *__nonnull)
rightHandSideMatrix(MPSMatrix *__nonnull) pivotIndices(MPSMatrix *__nonnull) solutionMatrix
Encode a MPSMatrixSolveLU kernel into a command Buffer.
Parameters:
commandBuffer A valid MTLCommandBuffer to receive the encoded filter
sourceMatrix A valid MPSMatrix containing the source matrix in factored form as returned by a previous successful execution of a
MPSMatrixDecompositionLU kernel.
rightHandSideMatrix A valid MPSMatrix containing the right hand side values.
pivotIndices A valid MPSMatrix which contains the pivot indices as returned by a previous successful execution of a
MPSMatrixDecompositionLU kernel.
solutionMatrix A valid MPSMatrix to contain the result.
This function encodes the MPSMatrixSolveLU object to a valid command buffer. sourceMatrix should contain the lower and upper triangular
factors of A as results from a previous execution of MPSMatrixDecompositionLU.
pivotIndices is an array of pivots resulting from a previous execution of MPSMatrixDecompositionLU.
rightHandSideMatrix and solutionMatrix must be large enough to hold a matrix of size order x numberOfRightHandSides starting at
secondarySourceMatrixOrigin and resultMatrixOrigin respectively.
sourceMatrix must be at least size order x order starting at primarySourceMatrixOrigin.
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(BOOL) transpose(NSUInteger) order(NSUInteger) numberOfRightHandSides
Initialize an MPSMatrixSolveLU object on a device
Parameters:
device The device on which the kernel will execute.
transpose A boolean value which indicates if the source matrix should be used in transposed form.
order The order of the source matrix and the number of rows in the solution and right hand side matrices.
numberOfRightHandSides The number of columns in the solution and right hand side matrices.
Returns:
A valid MPSMatrixSolveLU object or nil, if failure.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSMatrixSolveLU(3)