Attempting to pass in-line parameters & values to a shell script, using the CUT command to split a value where a ',' delimiter is used. The format of the passed value will be '00:00:00,00:00:00'.
If I create a file with the contents "12:34:56,12:34:56", using the command
cut -d, -f1 < file
I get... (4 Replies)
Hi All,
Can anyone tell me how to use cut command?I have tried but its not working...Please find the details below :
$ cat file1
SlNo. E_ID E_Name Age Dept
1 123 A 20 Electrical
2 124 B 20 Electronics
3 125 C 24 Computer
4 126 D 23 Mechanical
... (3 Replies)
HI,
Bieng new to this forum not know how to start new thread.
hence updating this thread on cut command.
Please suggest delimter character for below scenario.
Here is output of my df -kP command
Filesystem 1024-blocks Used Available Capacity Mounted on... (1 Reply)
I have large formatted data file with five columns. This has to be rearranged in lower order matrix form as shown below for sample data.
1 2 3 4 5
1.0
3.0 2.0
5.0 3.0 2.0
4.0 3.0 1.0 6.0
2.0 3.0 4.0 5.0 1.0
1.0 4.0 2.0 3.0 5.0
3.0 5.0 4.0 2.0 8.0
1.0 3.0 2.0 4.0 5.0
2.0... (7 Replies)
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
hay
i am trying to get JUST the PID from the ps command.
my command line is:
ps -ef | grep "mintty" | cut -d' ' -f2
but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that.
i know i can use awk or cut... (8 Replies)
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
LEARN ABOUT REDHAT
slaqge
SLAQGE(l) ) SLAQGE(l)
NAME
SLAQGE - equilibrate a general M by N matrix A using the row and scaling factors in the vectors R and C
SYNOPSIS
SUBROUTINE SLAQGE( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, EQUED )
CHARACTER EQUED
INTEGER LDA, M, N
REAL AMAX, COLCND, ROWCND
REAL A( LDA, * ), C( * ), R( * )
PURPOSE
SLAQGE equilibrates a general M by N matrix A using the row and scaling factors in the vectors R and C.
ARGUMENTS
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.
A (input/output) REAL array, dimension (LDA,N)
On entry, the M by N matrix A. On exit, the equilibrated matrix. See EQUED for the form of the equilibrated matrix.
LDA (input) INTEGER
The leading dimension of the array A. LDA >= max(M,1).
R (input) REAL array, dimension (M)
The row scale factors for A.
C (input) REAL array, dimension (N)
The column scale factors for A.
ROWCND (input) REAL
Ratio of the smallest R(i) to the largest R(i).
COLCND (input) REAL
Ratio of the smallest C(i) to the largest C(i).
AMAX (input) REAL
Absolute value of largest matrix entry.
EQUED (output) CHARACTER*1
Specifies the form of equilibration that was done. = 'N': No equilibration
= 'R': Row equilibration, i.e., A has been premultiplied by diag(R). = 'C': Column equilibration, i.e., A has been postmulti-
plied by diag(C). = 'B': Both row and column equilibration, i.e., A has been replaced by diag(R) * A * diag(C).
PARAMETERS
THRESH is a threshold value used to decide if row or column scaling should be done based on the ratio of the row or column scaling factors.
If ROWCND < THRESH, row scaling is done, and if COLCND < THRESH, column scaling is done.
LARGE and SMALL are threshold values used to decide if row scaling should be done based on the absolute size of the largest matrix element.
If AMAX > LARGE or AMAX < SMALL, row scaling is done.
LAPACK version 3.0 15 June 2000 SLAQGE(l)