08-24-2015
You don't need an array for your purpose; feed ls's output into e.g. a while loop to achieve the desired result.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
2. Shell Programming and Scripting
Hi all
Iam trying to send an array to oracle procedure from unix. Iam writing a program in K Shell to pass this array to oracle. Is it possible. Please advice
thanks
Krishna (7 Replies)
Discussion started by: krishnasai
7 Replies
3. UNIX for Dummies Questions & Answers
Is it possible to say..
myArr=34
myArr=15
? (11 Replies)
Discussion started by: yongho
11 Replies
4. Shell Programming and Scripting
Hi all...
Im looking to pass the contents of a simple file to Oracle so that it can be stored in a database table.
The best way i can think of to avoid overhead is to loop through the contents of the file and store the data in a bash array. then the array can be passed to SQL Plus where... (4 Replies)
Discussion started by: satnamx
4 Replies
5. Shell Programming and Scripting
I have a Main shell script file. In that the below lines(7) is spooled in Oracle & written to a file say temp.out
INSTANCE_N
----------
undefined
PROACT1
REPCAT1
PROACT2
REPCAT2
I want to ignore the first 3 lines & put the rest 4 lines PROACT1..REPCAT2 into the arrays. So that i can use... (2 Replies)
Discussion started by: dreams5617
2 Replies
6. Shell Programming and Scripting
hi everybody
can anyone help me with usage of 2 dimensional arrays in unix. please provide a suitable example for accessing individual elements as well as all elements.
Thanks (2 Replies)
Discussion started by: jpriyank
2 Replies
7. UNIX for Dummies Questions & Answers
Hi there,
I have a small piece of code
i=1
Number=10
while
do
echo "$i"
Check=`cmd to give to me file name with path
i=`expr ${i} + 1`
done
when i do in a loop echo "$Check"---------Unable to display, the values.
... (5 Replies)
Discussion started by: Naveen_5960
5 Replies
8. Shell Programming and Scripting
Say I have ./param HEY
What would I do if I wanted to store each character into an array?
Example.
ARRAY1="H"
ARRAY1="E"
ARRAY1="Y"
thank you! (5 Replies)
Discussion started by: puttster
5 Replies
9. Programming
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
1 Replies
10. UNIX for Dummies Questions & Answers
hi all,
is there any method to declare each line of a text file to array variable.
my text file is:
123
222
333
so,
a=123
a=222
a=333
can anyone help me out pls...
thanks in advance,
Arun Manas:b: (4 Replies)
Discussion started by: arunmanas
4 Replies
LEARN ABOUT DEBIAN
dlasq1
dlasq1.f(3) LAPACK dlasq1.f(3)
NAME
dlasq1.f -
SYNOPSIS
Functions/Subroutines
subroutine dlasq1 (N, D, E, WORK, INFO)
DLASQ1
Function/Subroutine Documentation
subroutine dlasq1 (integerN, double precision, dimension( * )D, double precision, dimension( * )E, double precision, dimension( * )WORK,
integerINFO)
DLASQ1
Purpose:
DLASQ1 computes the singular values of a real N-by-N bidiagonal
matrix with diagonal D and off-diagonal E. The singular values
are computed to high relative accuracy, in the absence of
denormalization, underflow and overflow. The algorithm was first
presented in
"Accurate singular values and differential qd algorithms" by K. V.
Fernando and B. N. Parlett, Numer. Math., Vol-67, No. 2, pp. 191-230,
1994,
and the present implementation is described in "An implementation of
the dqds Algorithm (Positive Case)", LAPACK Working Note.
Parameters:
N
N is INTEGER
The number of rows and columns in the matrix. N >= 0.
D
D is DOUBLE PRECISION array, dimension (N)
On entry, D contains the diagonal elements of the
bidiagonal matrix whose SVD is desired. On normal exit,
D contains the singular values in decreasing order.
E
E is DOUBLE PRECISION array, dimension (N)
On entry, elements E(1:N-1) contain the off-diagonal elements
of the bidiagonal matrix whose SVD is desired.
On exit, E is overwritten.
WORK
WORK is DOUBLE PRECISION array, dimension (4*N)
INFO
INFO is INTEGER
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value
> 0: the algorithm failed
= 1, a split was marked by a positive value in E
= 2, current block of Z not diagonalized after 100*N
iterations (in inner while loop) On exit D and E
represent a matrix with the same singular values
which the calling subroutine could use to finish the
computation, or even feed back into DLASQ1
= 3, termination criterion of outer while loop not met
(program created more than N unreduced blocks)
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
November 2011
Definition at line 109 of file dlasq1.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.1 Sun May 26 2013 dlasq1.f(3)