As you haven't showed us the complete sample input of ps -auxwww. So following may help you in same though we could make it more simpler within single awk etc.
Please let us know if you have any queries with complete sample inputs and output of ps -auxwww.
Thanks,
R. Singh
Last edited by RavinderSingh13; 02-22-2016 at 07:11 AM..
This User Gave Thanks to RavinderSingh13 For This Post:
Hi - can any one let me know how to re-arrange the columns of a comma seperated file. The problem here is that the colums some times have new lines and when the columns has new lines or extra comma's then it is enclosed in double quotes("). Can any one tell me how to re-arrange the columns now.
... (0 Replies)
ok so I have a list of names that end in either ot,om,oa.
So for example
DETOT
MANOA
DET0M
DET0A
MANOT
SEAOT
etc...
I want to be able to group this list by OT, OM, OA and have the output have some headers like this and be alphabatized and if possible be in colums instead of like... (10 Replies)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
10.142.7.155 - - www.abc.com 404 -
I have many columns which is tab delimited file, I have to re-arrange this to a particular column and also add "-" to 3rd column and 6th column.
10.142.7.155 - - - www.abc.com - 404 - (4 Replies)
Hi All,
I would like to ask help on how can i achieve below output.
Inputfile:
Oct11,apa1-daily,01:25:01
Oct11,apa2-daily,01:45:23
Oct12,apa1-daily,02:30:11
Oct12,apa2-daily,01:55:01
Oct13,apa1-off,01:43:34
Oct13,apa2-off,01:22:04
Desired output:
Clients ... (3 Replies)
HI Guys,
I hope you are well. I am trying to write a script that gets executed every time i open a shell (cshell). I have two questions about that
1) I need to enter these commands
$ echo $DISPLAY
$ setenv $DISPLAY output_of_echo_$display_command
How can i write a... (2 Replies)
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Hi
I have a text file as given below:
Input format
I
have
a
text
file
as
given
below
.
This
is
a (9 Replies)
Discussion started by: my_Perl
9 Replies
LEARN ABOUT OPENSOLARIS
mlib_signallpcautocorrelgetparcor_f32
mlib_SignalLPCAutoCorrelGetPARCOR_F32(3MLIB) mediaLib Library Functions mlib_SignalLPCAutoCorrelGetPARCOR_F32(3MLIB)NAME
mlib_SignalLPCAutoCorrelGetPARCOR_F32 - return the partial correlation (PARCOR) coefficients
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalLPCAutoCorrelGetPARCOR_F32(
mlib_f32 *parcor, void *state);
DESCRIPTION
The mlib_SignalLPCAutoCorrelGetPARCOR_F32() function returns the partial correlation (PARCOR) coefficients.
In linear predictive coding (LPC) model, each speech sample is represented as a linear combination of the past M samples.
M
s(n) = SUM a(i) * s(n-i) + G * u(n)
i=1
where s(*) is the speech signal, u(*) is the excitation signal, and G is the gain constants, M is the order of the linear prediction fil-
ter. Given s(*), the goal is to find a set of coefficient a(*) that minimizes the prediction error e(*).
M
e(n) = s(n) - SUM a(i) * s(n-i)
i=1
In autocorrelation method, the coefficients can be obtained by solving following set of linear equations.
M
SUM a(i) * r(|i-k|) = r(k), k=1,...,M
i=1
where
N-k-1
r(k) = SUM s(j) * s(j+k)
j=0
are the autocorrelation coefficients of s(*), N is the length of the input speech vector. r(0) is the energy of the speech signal.
Note that the autocorrelation matrix R is a Toeplitz matrix (symmetric with all diagonal elements equal), and the equations can be solved
efficiently with Levinson-Durbin algorithm.
See Fundamentals of Speech Recognition by Lawrence Rabiner and Biing-Hwang Juang, Prentice Hall, 1993.
PARAMETERS
The function takes the following arguments:
parcor The partial correlation (PARCOR) coefficients.
state Pointer to the internal state structure.
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_SignalLPCAutoCorrelInit_F32(3MLIB), mlib_SignalLPCAutoCorrel_F32(3MLIB), mlib_SignalLPCAutoCorrelGetEnergy_F32(3MLIB), mlib_SignalLP-
CAutoCorrelFree_F32(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_SignalLPCAutoCorrelGetPARCOR_F32(3MLIB)