Hi @ all,
I'm trying to accomplish a simple excel-job with awk, without any result...
What i have is a file with a time stamp for each line like :
21:02:07
21:04:11
21:06:28
21:08:44
21:10:45
21:12:48
21:14:52
21:16:53
21:18:55
What i would, is to calculate the time elapsed... (7 Replies)
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
I am trying to enter a third column in this file, but the third column should that I call "Math" perform a some math calculations based on the value found in column #2.
Here is the input file:
Here is the desired output:
Output
GERk0203078$ Levir Math
Cotete_1... (5 Replies)
Hi, I need your help. I've got two files and i need to add 2nd line after occurrence of "Group No X" from data2.txt to 3rd line (after occurrence of "Group No X") from data1.txt. There is the same number of "Groups" in both files and the numbers of groups have the same pattern.
data1.txt
Group... (2 Replies)
I have a two files, file A and B, which have 5 columns, and each 5 columns are made up of random numbers, that means, numbers are all different.
They have same amount of lines (Both 1000 lines)
I hope to do a operation
1) 2nd column of file A - 2nd column of file B
2) 5th column of... (4 Replies)
Hi All,
I am using an awk script as below:
awk -F'|' 'BEGIN{OFS="|";} { if ($1==$3 && $3==$7 && $7==$13 && $2==$6 && $6==$11 && $15-$14+1==$11) print $0"|""TRUE"; else print $0"|""FALSE"; }' tempfile.txt
In above script, all conditions are being checked except the one which is... (4 Replies)
Hi
main object is categorize the difference of data-values (TLUFT02B - TLUFT12B).
herefor i read out data-files which are named
acording to the timeformat yyyymmddhhmm.
WR030B 266.48 Grad 0
WR050B 271.46 Grad 0
WR120B 268.11 Grad 0
WV030B 2.51 m/s ... (6 Replies)
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (12 Replies)
Discussion started by: as7951
12 Replies
LEARN ABOUT SUNOS
mlib_matrixminimummag_d64c
mlib_MatrixMinimumMag_U8C(3MLIB) mediaLib Library Functions mlib_MatrixMinimumMag_U8C(3MLIB)NAME
mlib_MatrixMinimumMag_U8C, mlib_MatrixMinimumMag_S8C, mlib_MatrixMinimumMag_S16C, mlib_MatrixMinimumMag_S32C, mlib_MatrixMinimumMag_F32C,
mlib_MatrixMinimumMag_D64C - find the first element with the minimum magnitude in a matrix
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_MatrixMinimumMag_U8C(mlib_u8 *min, const mlib_u8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimumMag_S8C(mlib_s8 *min, const mlib_s8 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimumMag_S16C(mlib_s16 *min, const mlib_s16 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimumMag_S32C(mlib_s32 *min, const mlib_s32 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimumMag_F32C(mlib_f32 *min, const mlib_f32 *x, mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimumMag_D64C(mlib_d64 *min, const mlib_d64 *x, mlib_s32 m, mlib_s32 n);
DESCRIPTION
Each of these functions finds the first element with the minimum magnitude in a complex matrix, then puts the real and imaginary parts of
it into min[0] and min[1], respectively.
PARAMETERS
Each of the functions takes the following arguments:
min Pointer to the first element with the minimum magnitude.
x Pointer to the first element of the source matrix.
m Number of rows in the source matrix.
n Number of columns in the source matrix.
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_MatrixMaximumMag_U8C(3MLIB), mlib_VectorMaximumMag_U8C(3MLIB), mlib_VectorMinimumMag_U8C(3MLIB), attributes(5)SunOS 5.10 9 Nov 2004 mlib_MatrixMinimumMag_U8C(3MLIB)