11-18-2008
File1
[11/10/08 8:43:43:960 EST] 00000107 sdfsdfsdfsdfsdf
[11/10/08 8:43:43:961 EST] 00000107 sdfsdfsdfsdfsdfsdf
[11/10/08 8:43:43:961 EST] 00000107 sdfsdfsdfsdfsdfsdfsdfsdf
[11/10/08 8:43:43:961 EST] 00000107 sdfsdfsdfsdfsdfsdfsdf
[11/10/08 8:43:43:961 EST] 00000107 sdfsdfsdfsdfsdfsdfsdsdf
[11/10/08 8:43:58:570 EST] 0000009a sdfsdfsdfsdfsdfsdfsdfsdfsdf
[11/10/08 8:43:58:570 EST] 0000009a sdfsdfsdfsdfsdsdfsdf
[11/10/08 8:43:58:570 EST] 0000009a sdfsdfsdffffffff
[11/10/08 8:43:58:609 EST] 0000009a sdffffffffff
[11/10/08 8:43:58:610 EST] 0000009a sdfffffwetwert
[11/10/08 8:44:44:340 EST] 0000009a sdfgsdfsdfsdfsd
File2 (desired output)
[11/10/08 8:43:58:610 EST] 0000009a sdfffffwetwert
[11/10/08 8:44:44:340 EST] 0000009a sdfgsdfsdfsdfsd
Here my first string is [11/10/08 8:43:58:610 EST] and second string is [11/10/08 8:44:44:340 EST]
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey, I want to have a C program which, for an existing file supplied by the command line argument (E.g. File1.txt) replaces all the occurrences of the words:
"We” or “we” by “I”
“a” by “the”
“A” by “The”.
Then print the replaced file. All other characters of the file are to be left... (1 Reply)
Discussion started by: IwishIknewC
1 Replies
2. Shell Programming and Scripting
Hello all
i have big test file that has allot of structure text something like this :
<foo1 *.html>
<blah action>
somthing 1
somthing 2
</blah>
</foo1 >
now i will like to insert 2 more lines of text below the <blah action>
so it will be like :
<foo1... (1 Reply)
Discussion started by: umen
1 Replies
3. UNIX for Dummies Questions & Answers
I want to carry out search & replace for the paths mentioned in the file with the help of vi.
'abc/' to be replaced by 'abc/data'
When I use command in vi as below -
%s/abc//abc/data/g
it gives me an error.
How we should deal with '/' part in string for vi search & replace?
... (6 Replies)
Discussion started by: videsh77
6 Replies
4. Shell Programming and Scripting
Hi All,
I am just learning shell programming,
I need to do the following in my shell script.
Search a given log file for two\more strings.
If the the two\more strings are found then write it to a outputfile else
if only one of the string is found, write the found string in one output... (2 Replies)
Discussion started by: amitrajvarma
2 Replies
5. UNIX for Dummies Questions & Answers
Dear unix gurus,
I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this:
adam peter
blah blah blah
blah blah blah
car
01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y... (8 Replies)
Discussion started by: tintin72
8 Replies
6. Shell Programming and Scripting
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies
7. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
8. Shell Programming and Scripting
Hi All,
I am writting a Sell Script, that takes Search String & File Name from the terminal and check for Null Status. If either is NULL then pgm should quit.
I wrote the following:
bash-3.2$ cat null_status_of_parameters.sh
#!/bin/sh
#WASS that takes Search String & File Name from... (2 Replies)
Discussion started by: manishdivs
2 Replies
9. Shell Programming and Scripting
Hi,
I have two files master.txt & reference.txt. Sample below
Master.txt
2372,MTS,AP
919848001104,Airtel,DL
0819,MTS,MUM
919849788001,Airtel,AP
1430,Aircel MP,20
Reference.txt
2372,919848701430,46467
919848002372,2372,47195
2372,919849788001,59027
0819,028803,1
0819,029801,1... (2 Replies)
Discussion started by: siramitsharma
2 Replies
10. Shell Programming and Scripting
Hi,I have 2 files master.txt & reference.txt as shown below & i require o/p as mentioned in file 3 using awk but content is not replacing properlymaster.txt:... (15 Replies)
Discussion started by: siramitsharma
15 Replies
LEARN ABOUT DEBIAN
dlacon.f
dlacon.f(3) LAPACK dlacon.f(3)
NAME
dlacon.f -
SYNOPSIS
Functions/Subroutines
subroutine dlacon (N, V, X, ISGN, EST, KASE)
DLACON
Function/Subroutine Documentation
subroutine dlacon (integerN, double precision, dimension( * )V, double precision, dimension( * )X, integer, dimension( * )ISGN, double
precisionEST, integerKASE)
DLACON
Purpose:
DLACON estimates the 1-norm of a square, real matrix A.
Reverse communication is used for evaluating matrix-vector products.
Parameters:
N
N is INTEGER
The order of the matrix. N >= 1.
V
V is DOUBLE PRECISION array, dimension (N)
On the final return, V = A*W, where EST = norm(V)/norm(W)
(W is not returned).
X
X is DOUBLE PRECISION array, dimension (N)
On an intermediate return, X should be overwritten by
A * X, if KASE=1,
A**T * X, if KASE=2,
and DLACON must be re-called with all the other parameters
unchanged.
ISGN
ISGN is INTEGER array, dimension (N)
EST
EST is DOUBLE PRECISION
On entry with KASE = 1 or 2 and JUMP = 3, EST should be
unchanged from the previous call to DLACON.
On exit, EST is an estimate (a lower bound) for norm(A).
KASE
KASE is INTEGER
On the initial call to DLACON, KASE should be 0.
On an intermediate return, KASE will be 1 or 2, indicating
whether X should be overwritten by A * X or A**T * X.
On the final return from DLACON, KASE will again be 0.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
November 2011
Contributors:
Nick Higham, University of Manchester.
Originally named SONEST, dated March 16, 1988.
References:
N.J. Higham, 'FORTRAN codes for estimating the one-norm of
a real or complex matrix, with applications to condition estimation', ACM Trans. Math. Soft., vol. 14, no. 4, pp. 381-396, December
1988.
Definition at line 116 of file dlacon.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.1 Sun May 26 2013 dlacon.f(3)