Hi may i ask how to accomplish this task:
I have 2 files which has multiple columns
first file
1 a
2 b
3 c
4 d
second file
14 a 9 ....
13 b 10....
12 c 11...
11 d 12...
I want to merge the second file to first file that will looks like this
... (2 Replies)
Hi everyone. How can I merge two files, where each file has 2 columns and the first columns in both files are similar? I want all in a file of 4 columns; join command removes the duplicate columns.
1 Dave
2 Mark
3 Paul
1 Apple
2 Orange
3 Grapes
to get it like this in the 3rd file:... (9 Replies)
Hi,
I have tab limited file 1
and tab limited file 2
The output should contain common first column vales and corresponding 2nd column values; AND also unique first column value with corresponding 2nd column value of the file that contains it and 0 for the second file.
the output should... (10 Replies)
Hi all,
I'm looking for a way to merge multiple columns (from one file) into a single column in an output file.
The file I have looks somewhat like this:
@HWI-ST212 1:N:0 AGTCCTACCGGGAGT + @@@DDDDDHHHHHII
@HWI-ST212 1:N:0 CGTTTAAAAATTTCT + @;@B;DDDDH?:F;F... (4 Replies)
Hi all, I've searched the web for a long time trying to figure out how to merge columns from multiple files.
I know paste will append columns like so:
paste file1 file2 file3 file4 file5 ...
But this becomes inconvenient when you want to append a large number of files into a single file.
... (2 Replies)
Hello, I have two files that have this format:
file 1
86.82 0.00 86.82 43.61
86.84 0.00 86.84 43.61
86.86 0.00 86.86 43.61
86.88 0.00 86.88 43.61
file 2
86.82 0.22
86.84 0.22
86.86 0.22
86.88 0.22
I would like to merge these two files such that the final file looks like... (5 Replies)
Hi,
I have a file with 16 columns and out of these 16 columns 14 are key columns, 15 th is order column and 16th column is having information. I need to concate the 16th column based on value of 1-14th column as key in order of 15th column. Here are the example file
Input File (multiple... (3 Replies)
I will like to merge several files using 'cat', but I observe the output is not consistent. the merge begins at the last line of the first file.
file1.txt:
1234
1234
1234
file2.txt:
aaaa
bbbb
cccc
dddd
cat file1.txt file2.txt > file3.txt
file3.txt:
1234
1234
1234aaaa
bbbb
cccc... (13 Replies)
Join and merge multiple files with duplicate key and fill void columns
Hi guys,
I have many files that I want to merge:
file1.csv:
1|abc
1|def
2|ghi
2|jkl
3|mno
3|pqr
file2.csv: (5 Replies)
Discussion started by: yjacknewton
5 Replies
LEARN ABOUT DEBIAN
net::sip::dtmf
Net::SIP::DTMF(3pm) User Contributed Perl Documentation Net::SIP::DTMF(3pm)NAME
Net::SIP::DTMF - DTMF RTP packet generating and extracting
SYNOPSIS
use Net::SIP::DTMF;
my $sub = dtmf_generator(
11, # event '#'
100, # duration 100ms
rfc2833_type => 101, # RTP type 101 for telephone-event/8000
# audio_type => 0, # RTP type 0 for PCMU/8000
);
while (...) {
my @pkt = $sub->($sequence,$timestamp,$srcid);
last if ! @pkt; # dtmf done
next if $buf[0] eq ''; # more coming, but no data this time (pause)
.. send @pkts ...
}
use Net::SIP::DTMF;
my $sub = dtmf_extractor(
rfc2833_type => 101, # RTP type 101 for telephone-event/8000
audio_type => 0, # RTP type 0 for PCMU/8000
);
while (...) {
if ( my ($event,$duration,$type) = $sub->($packet)) {
# event received
...
}
}
DESCRIPTION
This package provides functions for generating RTP packets containing DTMF events or extracting DTMF events from RTP packets.
FUNCTIONS
dtmf_generator ( EVENT, DURATION, %ARGS )
Generates a function which is used to generate packets for the given EVENT.
EVENT is the event numer (0..15) or undef if it should just generate silence or pause. DURATION is the time for the event in ms. ARGS
contain information how the event should be packed: either as RFC2833 RTP event or as RTP audio PCMU/8000. %ARGS can be
rfc2833_type => rtp_type
Gives the RTP payload type number for rfc2833 RTP events (telephone-event/8000). If not given will try audio_type instead.
audio_type => rtp_type
Gives the RTP payload type number for PCMU/8000. If not given and no rfc2833_type given it will croak.
volume => volume
Sets the volume for RTP event according to rfc2833.
The generated function should then be called with SEQUENCE,TIMESTAMP,SRCID to generate the RTP packets and will return @RTP_PACKETS,
with
() - DTMF event is finished
$RTP_PACKETS[0] eq '' - no RTP packet for this call (pause)
@RTP_PACKETS - RTP packets which can be send to the peer
dtmf_extractor ( %ARGS )
Generates a function which is used to extract DTMF events. Keys rfc2833_type and audio_type have the same meaning as in generate_dtmf.
It will only attempt to extract DTMF events from rfc2833 RTP events or audio if the relevant rtp_type is given.
The function will be called with the RTP packet as the only argument and will return () if no new events where found or
(EVENT,DURATION,TYPE) if an event finished, where DURATION is the duration in ms and TYPE is audio|rfc2833.
For performance reasons it is best to use only rfc2833 if the peer supports it.
perl v5.14.2 2012-06-12 Net::SIP::DTMF(3pm)