08-18-2009
Hi
This works fine. But there is more space between the words
K_25_5 Analysis ,
Coding , Post deli
very phase
DU0182_17_42 P05 ,
P06 , P07
, P08
, Post delivery phase
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a requirement in which i have to read a file which has multiple columns seperated by a pipe "|" from this i have to read each column values seperately and create a comma seperated row for the column and write to another file.
eg:
Input file:
ColA ColB
1 2
2 x
3 y... (5 Replies)
Discussion started by: nvuradi
5 Replies
2. Shell Programming and Scripting
Hi All,
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
.....
.....
Question:
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Discussion started by: amigarus
6 Replies
3. Shell Programming and Scripting
I am a newbie to shell scripting ..
I have a .csv file. It has 1000 some rows and about 7 columns...
but before I insert this data to a table I have to parse it and clean it ..basing on the value of the first column..which a string of phone number type...
example below..
column 1 ... (2 Replies)
Discussion started by: mitr
2 Replies
4. Shell Programming and Scripting
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Discussion started by: ks_reddy
11 Replies
5. Shell Programming and Scripting
Is it possible to remove redundant names in the 4th column?
input
cqWE 100 200 singapore;singapore
AZO 300 400 brazil;america;germany;ireland;germany
....
....
output
cqWE 100 200 singapore
AZO 300 400 brazil;america;germany;ireland (4 Replies)
Discussion started by: quincyjones
4 Replies
6. Shell Programming and Scripting
Hi,
I have the following file,
chr1 100 200 20
chr1 201 300 22
chr1 220 345 23
chr1 230 456 33.5
chr1 243 567 90
chr1 345 600 20
chr1 430 619 21.78
chr1 870 910 112.3
chr1 914 920 12
chr1 930 999 13
My output would be
peak1 20 22 23 33.5 90
peak2 20 21.78 112.3 12 13
Here the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
7. UNIX for Dummies Questions & Answers
Hi would like to ask you guys any advise regarding my problem
I have this kind of data
file.txt
111111111,20
111111111,50
222222222,70
333333333,40
444444444,10
444444444,20
I need to get this
file1.txt
111111111,70
222222222,70
333333333,40
444444444,30
using this code I can... (6 Replies)
Discussion started by: reks
6 Replies
8. Shell Programming and Scripting
Hi,
I have multiple files that each contain four columns of strings:
File1:
Code:
123 abc gfh 273
456 ddff jfh 837
789 ghi u4u 395
File2:
Code:
123 abc dd fu
456 def 457 nd
891 384 djh 783
I want to compare the strings in Column 1 of File 1 with each other file and Print in... (3 Replies)
Discussion started by: owwow14
3 Replies
9. Shell Programming and Scripting
I want to bring values in the second column into single line for uniq value in the first column.
My input
jvm01, Web 2.0 Feature Pack Library
jvm01, IBM WebSphere JAX-RS
jvm01, Custom01 Shared Library
jvm02, Web 2.0 Feature Pack Library
jvm02, IBM WebSphere JAX-RS
jvm03, Web 2.0 Feature... (10 Replies)
Discussion started by: kchinnam
10 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
Does anyone have any suggestions/examples of how i could show only lines where the first field is not duplicated. If the first field is listed more than once it shouldnt be shown even if the other columns make it unique.
Example file :
876,RIBDA,EC2
876,RIBDH,EX7
877,RIBDF,E28... (4 Replies)
Discussion started by: mutley2202
4 Replies
LEARN ABOUT OPENSOLARIS
mlib_signalupsample_f32_f32
mlib_SignalUpSample_S16_S16(3MLIB) mediaLib Library Functions mlib_SignalUpSample_S16_S16(3MLIB)
NAME
mlib_SignalUpSample_S16_S16, mlib_SignalUpSample_S16S_S16S, mlib_SignalUpSample_F32_F32, mlib_SignalUpSample_F32S_F32S - signal upsampling
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalUpSample_S16_S16(mlib_s16 *dst,
const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_S16S_S16S(mlib_s16 *dst,
const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_F32_F32(mlib_f32 *dst,
const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_F32S_F32S(mlib_f32 *dst,
const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
DESCRIPTION
Each of these functions performs upsampling.
For monaural signals, the following equation is used:
dst[i] = src[k] if i == k*factor + phase
dst[i] = 0 if i != k*factor + phase
where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1).
For stereo signals, the following equation is used:
dst[2*i] = src[2*k] if i == k*factor + phase
dst[2*i] = 0 if i != k*factor + phase
dst[2*i + 1] = src[2*k + 1] if i == k*factor + phase
dst[2*i + 1] = 0 if i != k*factor + phase
where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1).
PARAMETERS
Each of the functions takes the following arguments:
dst Output signal array.
src Input signal array.
factor Factor by which to upsample. factor >= 1.
phase Parameter that determines relative position of an input value, within the output signal. 0 <= phase < factor.
n Number of samples in the input signal array.
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_SignalDownSample_S16_S16(3MLIB), attributes(5)
SunOS 5.11 2 Mar 2007 mlib_SignalUpSample_S16_S16(3MLIB)