I have a file let us name x which contains as follows
In this above data i want to find max num for 2nd column after finding that it should print its respective row and my output should b displayed as another file.I can have so many columns and rows its for eg i 600 rows and 15 columns
I want my output as like below
I think i have explained my question of my knowldge
waiting for ur help frds
Thanks in advance
Last edited by Franklin52; 02-16-2010 at 06:49 AM..
Reason: Please use code tags!
hi,
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting.
Please help me out for this.
Regards
S.Kamakshi (2 Replies)
Hi All,
I want to read one number from the file.
Only one number will be there in the file.
then i have to increment the number in my script and put it back in the same file.
Is it possible?
Can anybody help me?
Thanks,
Vinay (6 Replies)
Hi Guys,
I am new to unix.
Actually i want help in writing an single command where
i can actually read specific line number in file where the line number will be passed to command as parameter.
ex.
1 a
2 b
3 c
4 d
And to my command i pass as 2.
so i should get output as 2 b
... (15 Replies)
I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later.
Ex. 1 some data
2 something else
3 more stuff
which number do you... (1 Reply)
Hello, I'm trying to create a BASH file that can read all the files in my working directory and tell me how many words and lines are in that file. I wrote the following code:
FILES="*"
for f in "$FILES"
do
echo -e `wc -l -w $f`
done
My issue is that my file is outputting in one... (4 Replies)
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Hi all,
I have a file sample.txt
abc
asd
adf
daf
adw
add
adv
wdf
I want to control the number of lines to read
Like if i give input as ./script_name 2 5
required output
asd
adf
daf (2 Replies)
hello guys,
I'm struggled to get a number from a very long text file.
NAtoms= 33 NActive= 30 NUniq= 23 SFac= 1.00D+00 NAtFMM= 60 NAOKFM=F Big=F
Integral buffers will be 131072 words long.
Raffenetti 2 integral format.
The number 33 is what I wanted, always follows NAtoms=... (5 Replies)
I am new to ksh scripts. I would like to be able to read a file line by line from a certain line number. I have a specific line number saved in a variable, say $lineNumber. How can I start reading the file from the line number saved in $lineNumber? Thanks! (4 Replies)
Discussion started by: dcowboys13
4 Replies
LEARN ABOUT DEBIAN
sdbtrf
SDBTRF - compute an LU factorization of a real m-by-n band matrixA without using partial pivoting or row interchanges SUBROUTINESDBTRF( M, N, KL, KU, AB, LDAB, INFO )
INTEGER INFO, KL, KU, LDAB, M, N
REAL AB( LDAB, * ) Sdbtrf computes an LU factorization of a
real m-by-n band matrix A without using partial pivoting or rowinterchanges.This is the blocked version of the algorithm, calling Level 3
BLAS.M (input) INTEGER The number of rows of the matrix A. M >=
0. N (input) INTEGER The number of columns of the matrix
A. N >= 0. KL (input) INTEGER The number of subdiagonals
within the band of A. KL >= 0. KU (input) INTEGER The num-
ber of superdiagonals within the band of A. KU >= 0. AB
(input/output) REAL array, dimension (LDAB,N) On entry, the ma-
trix A in band storage, in rows KL+1 to 2*KL+KU+1; rows 1 to KL
of the array need not be set. The j-th column of A is stored in
the j-th column of the array AB as follows: AB(kl+ku+1+i-j,j) =
A(i,j) for max(1,j-ku)<=i<=min(m,j+kl)
On exit, details of the factorization: U is stored as an upper
triangular band matrix with KL+KU superdiagonals in rows 1 toKL+KU+1, and the multipliers used during the factorization arestored in rows KL+KU+2 to 2*KL+KU+1. See below for further de-tails. LDAB (input) INTEGER The leading dimension of the ar-
ray AB. LDAB >= 2*KL+KU+1. INFO (output) INTEGER = 0: suc-
cessful exit
< 0: if INFO = -i, the i-th argument had an illegal value
> 0: if INFO = +i, U(i,i) is exactly zero. The factorization has
been completed, but the factor U is exactly singular, and divi-sion by zero will occur if it is used to solve a system of equa-tions. The band storage scheme is illustrated by the following
example, when M = N = 6, KL = 2, KU = 1:
On entry: On exit:
* a12 a23 a34 a45 a56 * u12 u23 u34 u45 u56
a11 a22 a33 a44 a55 a66 u11 u22 u33 u44 u55 u66
a21 a32 a43 a54 a65 * m21 m32 m43 m54 m65 *
a31 a42 a53 a64 * * m31 m42 m53 m64 * *
Array elements marked * are not used by the routine.