01-02-2019
selection particular number of line from a bunch by user defined limits.
hello
i am having a file having a matrix as the following
4.1 5.5 6.55
7.2 8.2 1.002
i am having around 1 lakh rows, now i need a program in which i show give min x and min y and min z values and as well as max x max y max z, the values between these minimun and maximum values should be written into another file.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
how do i limit access for users so that they can only login via FTP and can only view/make changes to their own directories only. (1 Reply)
Discussion started by: sphiengollie
1 Replies
2. UNIX for Dummies Questions & Answers
What is the kernel parameter ( or other) that sets the maximum number of open files by the o/s (3 Replies)
Discussion started by: blp001
3 Replies
3. Shell Programming and Scripting
Hi there,
may someone easily help me on this :
I want to insert a text in a specific line number like :
linenumb2start=`cat memory_map.dld | nl -ba | egrep -i "label" | cut -f1`
line2insert=`expr $linenumb2start + 2`
and now I need to replace something like {} with {comment} at... (8 Replies)
Discussion started by: homefp
8 Replies
4. Shell Programming and Scripting
Hi Unix gurus
Basically i am searching for the pattern and getting the line numbers of the grepped pattern. I am trying to print the series of lines from 7 lines before the grepped line number to the grepped line number.
I am trying to use the following code. but it is not working.
cat... (3 Replies)
Discussion started by: mohanm
3 Replies
5. Shell Programming and Scripting
This is my problem, my file (file A) contains the following information:
Now, I would like to create a file (file B) containing only the lines with 10 or more characters but less than 20 with their corresponding ID:
Then, I need to compare the entries and determine their frequency. Thus, I... (7 Replies)
Discussion started by: Xterra
7 Replies
6. UNIX for Dummies Questions & Answers
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Discussion started by: grc
5 Replies
7. Shell Programming and Scripting
I am trying to find out the number of days between the current date and user defined date.
I took reference from here for the date2jd() function.
Modified the function according to my requirement. But its not working properly.
Original code from here is working fine.
#!/bin/sh... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
8. UNIX for Dummies Questions & Answers
OS version : RHEL 6.5
Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server
appusr soft nproc 2047
appusr hard nproc 16384
What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ?
I just want to know... (3 Replies)
Discussion started by: kraljic
3 Replies
9. Shell Programming and Scripting
Hi all - I'm completely stumped by a script I'm working on...
The short version is I have a file called 'lookup' and in it are hundreds of names (first and last). I have a script that basically allows the user to enter a name, and what I need to have happen is something like this:
Record... (8 Replies)
Discussion started by: sabster
8 Replies
10. Red Hat
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
LEARN ABOUT OPENSOLARIS
mlib_matrixminimum_f32
mlib_MatrixMinimum_U8(3MLIB) mediaLib Library Functions mlib_MatrixMinimum_U8(3MLIB)
NAME
mlib_MatrixMinimum_U8, mlib_MatrixMinimum_S8, mlib_MatrixMinimum_S16, mlib_MatrixMinimum_S32, mlib_MatrixMinimum_F32, mlib_MatrixMini-
mum_D64 - find the minimum value in a matrix
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_MatrixMinimum_U8(mlib_u8 *min, const mlib_u8 *x,
mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimum_S8(mlib_s8 *min, const mlib_s8 *x,
mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimum_S16(mlib_s16 *min, const mlib_s16 *x,
mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimum_S32(mlib_s32 *min, const mlib_s32 *x,
mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimum_F32(mlib_f32 *min, const mlib_f32 *x,
mlib_s32 m, mlib_s32 n);
mlib_status mlib_MatrixMinimum_D64(mlib_d64 *min, const mlib_d64 *x,
mlib_s32 m, mlib_s32 n);
DESCRIPTION
Each of these functions finds the minimum value of all elements in a matrix.
It uses the following equation:
min[0] = MIN{ x[i] i = 0, 1, ..., (m*n - 1) }
PARAMETERS
Each of the functions takes the following arguments:
min Pointer to the minimum value.
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 |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_MatrixMaximum_U8(3MLIB), mlib_VectorMaximum_U8(3MLIB), mlib_VectorMinimum_U8(3MLIB), attributes(5)
SunOS 5.11 2 Mar 2007 mlib_MatrixMinimum_U8(3MLIB)