I have this simple script which gives info on HBA ports. How do i get it all to print on the same line?
!#/bin/ksh
TMP_INFOFILE=/tmp/tmpfile
if ; then
rm -f $TMP_INFOFILE
touch $TMP_INFOFILE
fi
PORT_INFOFILE=/tmp/aa
if ; then
rm -f $PORT_INFOFILE
... (1 Reply)
Hi,
I am trying to debug an old script and have found the problem lies within this function:
isIdoc() { # validate the file type
fileType=`file $1 | awk '{print $NF}'`
&& echo 0 || echo 1
}
My question is, how can I determine what is in the variable $fileType ? The program is... (1 Reply)
The output of
du -b file* | awk '{print $1}'
is:
1501090
1500538
I want the result to be a sum of this column. ie the o/p should be
3001628
Any idea? (3 Replies)
I have these data below and i want my output to print only the 3rd files. For example, in /opt/home/nyfix/.k5login, i want to print only "nyfix".
/opt/home/nyfix/.k5login
/opt/home/security/.k5login
/opt/home/noc/.k5login
what is the appropriate command in shell scripting ? (2 Replies)
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Hi,
OS = Solaris
Can anyone advise if there is a one liner to print specific output from a df -k output?
Running df from a command line, it sometimes gives me 2 lines for some volume. By re-directing the output to a file, it always gives 1 line for each.
Below is an example output,... (4 Replies)
Hi,
Here is an example:
I have a grep line:
grep -i -r -H "$WORD" "$DIRECTORY"with an output like this:
/media/dir/dir2//dir4/file.txt:/media/dir/dir2/dir3/file_16072008/es6.txt: "content of the file found from grep"/media/dir/dir2/dir3/dir4/file3.txt:/media/dir/dir2/dir3//file.txt:"other... (3 Replies)
Normal grep is not working to get the output.
Sample Input:
newjob: abc
command name: a=b+c
newjob: bbc
command name: c=r+v
newjob:ddc
newjob:kkc
command name: c=l+g
newjob:mdc
newjob:ldc
newjob:kjc
command name: u=dl+g
newjob:lkdc
newjob:lksdc
command name: o=udl+g (6 Replies)
Discussion started by: onesuri
6 Replies
LEARN ABOUT DEBIAN
claswp
claswp.f(3) LAPACK claswp.f(3)NAME
claswp.f -
SYNOPSIS
Functions/Subroutines
subroutine claswp (N, A, LDA, K1, K2, IPIV, INCX)
CLASWP
Function/Subroutine Documentation
subroutine claswp (integerN, complex, dimension( lda, * )A, integerLDA, integerK1, integerK2, integer, dimension( * )IPIV, integerINCX)
CLASWP
Purpose:
CLASWP performs a series of row interchanges on the matrix A.
One row interchange is initiated for each of rows K1 through K2 of A.
Parameters:
N
N is INTEGER
The number of columns of the matrix A.
A
A is COMPLEX array, dimension (LDA,N)
On entry, the matrix of column dimension N to which the row
interchanges will be applied.
On exit, the permuted matrix.
LDA
LDA is INTEGER
The leading dimension of the array A.
K1
K1 is INTEGER
The first element of IPIV for which a row interchange will
be done.
K2
K2 is INTEGER
The last element of IPIV for which a row interchange will
be done.
IPIV
IPIV is INTEGER array, dimension (K2*abs(INCX))
The vector of pivot indices. Only the elements in positions
K1 through K2 of IPIV are accessed.
IPIV(K) = L implies rows K and L are to be interchanged.
INCX
INCX is INTEGER
The increment between successive values of IPIV. If IPIV
is negative, the pivots are applied in reverse order.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
November 2011
Further Details:
Modified by
R. C. Whaley, Computer Science Dept., Univ. of Tenn., Knoxville, USA
Definition at line 115 of file claswp.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.1 Sun May 26 2013 claswp.f(3)