05-24-2019
names can be anyone. rhel is the OS.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys i have a problem here, im trying to stablish a relationship between a text file and an input user for example the script is going to prompt the user for some football team and what the script is going to do is return the colums in which that input is located so far this is what i have ... (6 Replies)
Discussion started by: lucho_1
6 Replies
2. Shell Programming and Scripting
Hi Forum,
I am struggling with the for loop in shell script.
Let me explain what is needed in the script.
I have a file which will conatin some strings like
file1
place1
place2
place3
checkpoint
some other text
some more text
Now what my requirement is
the words ... (2 Replies)
Discussion started by: siri_14
2 Replies
3. Shell Programming and Scripting
I need to search for a csv and a dat file within a for loop then output them to a log table. I can do it individually but I want them together.
See below code:
check csv
count=0
for file in $(ls *.csv) ;
do
count=`expr $count + 1`
... (4 Replies)
Discussion started by: Pablo_beezo
4 Replies
4. Shell Programming and Scripting
Summary:
I planned on using Awk to grab a value from File 1 and search all records/fields in file 2. If there is a match in File 2, print the first column value of the record of the match of File2. Continue this search until the end of file 2. Once at the end of file 2, grab the next value in... (4 Replies)
Discussion started by: Incog
4 Replies
5. Shell Programming and Scripting
I have a txt file with contents of acct nbr's like:
22222222222
33333333333
33445566778
I need to write a script which takes each acct nbr in the file and run the query like:
select seq_nbr from event where acct_nbr='22222222222'
and the query's output should be passed to a... (0 Replies)
Discussion started by: Rajesh Putnala
0 Replies
6. Shell Programming and Scripting
I have a txt file with contents of acct nbr's like:
22222222222
33333333333
33445566778
I need to write a script which takes each acct nbr in the file and run the query like:
select seq_nbr from event where acct_nbr='22222222222'
and the query's output should be passed to a... (2 Replies)
Discussion started by: Rajesh Putnala
2 Replies
7. Shell Programming and Scripting
Hi,
I am trying to export the data to an .ixf file.
I have read the table names from a .dat file and those table name should be passed to the select * from schema.TABLENAME query .
I am trying the below loop
while read TABLE; do
db2 EXPORT TO ~/data_export/$TABLE.ixf OF IXF MESSAGES... (5 Replies)
Discussion started by: vikyalex4
5 Replies
8. Shell Programming and Scripting
In the bash when the user inputs an id to search for the bash currently closes, and if a match is found outputs a new file (match.txt). Is it possible to have not close the bash but rather, on the screen "searching for match" and if a match is found "match found in line.." is displayed... (3 Replies)
Discussion started by: cmccabe
3 Replies
9. Shell Programming and Scripting
Hi All,
I have a command which provide this output
symaccess -sid 624 show PG_E36_PG6P -type port |grep FA
FA-5G:1
FA-6G:0
FA-11G:0
FA-12G:1
I need to use the value in loop like this (5 Replies)
Discussion started by: ranjancom2000
5 Replies
10. Shell Programming and Scripting
friends
I need to find a file as I can do this is on AIX
I find the function find (2 Replies)
Discussion started by: tricampeon81
2 Replies
LEARN ABOUT SUNOS
mlib_signallpcpitchanalyze_s16
mlib_SignalLPCPitchAnalyze_S16(3MLIB) mediaLib Library Functions mlib_SignalLPCPitchAnalyze_S16(3MLIB)
NAME
mlib_SignalLPCPitchAnalyze_S16 - perform open-loop pitch analysis
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalLPCPitchAnalyze_S16(mlib_s32 *pitch, const mlib_s16 *sigwgt, const mlib_s32 *region, mlib_s32 length);
DESCRIPTION
The mlib_SignalLPCPitchAnalyze_S16() function performs open-loop pitch analysis.
The open-loop pitch analysis uses perceptual weighted signal and is done with following steps.
In the first step, three maxima of the correlation
N-1
R(k) = SUM sw(j) * sw(j-k)
j=0
where N = length, is located for each of the three search regions.
In the second step, the retained maxima R(Ti), i=0,1,2 are normalized as following.
R(Ti)
Rn(ti) = ---------------------, i=0,1,2
N-1 2
SQRT(SUM sw(j-Ti) )
j=0
where N = length.
In the third step, the best open-loop delay Topt is determined as following.
Topt = T0
if (Rn(t1) >= (0.85 * Rn(Topt))
Topt = t1
if (Rn(t2) >= (0.85 * Rn(Topt))
Topt = t2
See G.729, G.729A, GSM EFR standards.
PARAMETERS
The function takes the following arguments:
pitch The speech pitch estimated.
sigwgt The weighted signal vector with samples in Q15 format. sigwgt points to the current sample of the weighted signal vector,
length samples must be availabe after this point, and MAX{region[i],i=0,1,...,5} samples must be available before this
point.
region The lower/upper boundaries of the three search regions, where region[2*i] is the lower boundary of search region i and
region[2*i+1] is the upper boundary of search region i.
length The length of the signal vectors over which the correlation is calculated.
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 |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_SignalLPCPitchAnalyze_F32(3MLIB), attributes(5)
SunOS 5.10 10 Nov 2004 mlib_SignalLPCPitchAnalyze_S16(3MLIB)