Hi All,
My script is reading a log file line by line
log file is like ;
19:40:22 :INFO Total time taken to Service External Request---115ms
19:40:25 DEBUG : Batch processed libdaemon.x86_64 0-0.10-5.el5 - u
19:40:22 INFO Total time taken to Service External Request---20ms
19:40:24... (4 Replies)
Hey. This is pretty easy stuff but I'm learning the basics of Unix at the moment so keep that in mind. I have to:
1) Write a C-shell script to monitor user activity on the server for 13 minutes.
2) Then print the smallest and largest number of users during these 13 minutes.
I have this:
1)... (2 Replies)
Hi All,
My file is like this:
$ cat max.txt
abcd:1982:a
efghij:1980:e
klmn:1923:k
opqrst:1982:o
I have to find out the largest first field and the corresponding line. i.e
Output required:
efghij efghij:1980:e
opqrst opqrst:1982:o
HTH,
jkl_jkl (6 Replies)
I have two text files like this:
file1.txt:
133 10
133 22
133 13
133 56
133 78
133 98
file2.txt:
158 38
158 67
158 94
158 17
158 23
I'm basically trying to have awk check the second largest value of the second column of each text file, and cat it to its own text file. There... (13 Replies)
Hi !
Here is an example of a tab-delimited file with variable width values in field 2 (space separated values).
As the real file contains lot of lines, I can adjust manually the width to the largest value in field 2.
Does it exist an argument to do it automatically?
input.tab:... (4 Replies)
Hi All
I need to find the smallest values between replicates id (column1)
Input file:
a name1 1200
a name2 800
b name1 100
b name2 150
b name3 4output:
a name2 800
b name3 4
Do you have any suggestion?
Thank you! (9 Replies)
`awk` function looks like this in a file name `fun.awk`:
{
print small()
}
function small()
{
a=$0
smal=0
for(i=1;i<=3;i++)
{
if( a<a)
smal=a
else (4 Replies)
In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited,
that are in $1 of gene which is just a single column of text.
However only the line with the greatest $9 value in input needs to be printed.
So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT OPENSOLARIS
mlib_imageextrema2
mlib_ImageExtrema2(3MLIB) mediaLib Library Functions mlib_ImageExtrema2(3MLIB)NAME
mlib_ImageExtrema2, mlib_ImageExtrema2_Fp - image extrema
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageExtrema2(mlib_s32 *min, mlib_s32 *max,
const mlib_image *img, mlib_s32 xStart, mlib_s32 yStart,
mlib_s32 xPeriod, mlib_s32 yPeriod);
mlib_status mlib_ImageExtrema2_Fp(mlib_d64 *min, mlib_d64 *max,
const mlib_image *img, mlib_s32 xStart, mlib_s32 yStart,
mlib_s32 xPeriod, mlib_s32 yPeriod);
DESCRIPTION
Each of the functions determines the extrema values for each channel in an image, possibly with subsampling.
It uses the following equation:
min[i] = MIN{ img[x][y][i] }
max[i] = MAX{ img[x][y][i] }
where
x = xStart + p*xPeriod; 0 <= p < (w - xStart)/xPeriod
y = yStart + q*yPeriod; 0 <= q < (h - yStart)/yPeriod
PARAMETERS
Each of the functions takes the following arguments:
min Pointer to minimum vector, where length is the number of channels in the image. min[i] contains the minimum of channel i.
max Pointer to maximum vector, where length is the number of channels in the image. max[i] contains the maximum of channel i.
img Pointer to a source image.
xStart Initial X sample coordinate.
yStart Initial Y sample coordinate.
xPeriod X sample rate. xPeriod >= 1.
yPeriod Y sample rate. yPeriod >= 1.
RETURN VALUES
The function 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 |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageExtremaLocations(3MLIB), mlib_ImageMaximum(3MLIB), mlib_ImageMaximum_Fp(3MLIB), mlib_ImageMinimum(3MLIB), mlib_ImageMini-
mum_Fp(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_ImageExtrema2(3MLIB)