05-01-2011
you mean you have SUB_ID and SOURCE in both the file?
sample input files with which you tried the code would help.
regards,
Ahamed
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies
2. Shell Programming and Scripting
I'm running on freebsd -- with a default shell of csh.
I have two files named A and B. Each line of each file contains a file name. How can I write a script that removes all the file names in file B from A.
I tried to use perl to create a huge regular expression with "|" separating the file... (2 Replies)
Discussion started by: siegfried
2 Replies
3. UNIX for Dummies Questions & Answers
I have 100 data files labelled 250.1.txt through 250.100.txt. The second column of the data files partially match (there is about %90 overlap). Each data file has 4 columns.
I want the merge all these text files by the matching values in the second column. In the output, the first column should... (1 Reply)
Discussion started by: evelibertine
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have two files that I would like to merge and think that there should be a solution using awk. The files look something like this:
file 1
IDX1 IDY1
IDX2 IDY2
IDX3 IDY3
file 2
IDY1 dataA data1
IDY2 dataB data2
IDY3 dataC data3
Desired output
IDX1 IDY1 dataA data1
IDX2 ... (5 Replies)
Discussion started by: katie8856
5 Replies
5. Shell Programming and Scripting
I have a need to merge two files on the value of an index column.
input file 1
id filePath MDL_NUMBER
1 MFCD00008104.mol MFCD00008104
2 MFCD00012849.mol MFCD00012849
3 MFCD00037597.mol MFCD00037597
4 MFCD00064558.mol MFCD00064558
5 MFCD00064559.mol MFCD00064559
input file 2
... (9 Replies)
Discussion started by: LMHmedchem
9 Replies
6. Shell Programming and Scripting
Hi,
I have two files A (2190 rows) and file B (1100 rows). I want to merge the contents of two files based on common field, also I need the unmatched rows from file A
file A:
ABC
XYZ
PQR
file B:
>LMN|chr1:11000-12456:
>ABC|chr15:176578-187678:
>PQR|chr3:14567-15866:
output... (3 Replies)
Discussion started by: Diya123
3 Replies
7. Shell Programming and Scripting
Hi,
i have input files like below:-
input1
Name Seq_ID NewID Scores
MT1 A0QZX3 1.65 277.4
IVO A0QZX3 1.65 244.5
HPO A0QZX3 1.65 240.5
RgP A0Q3PP 5.32 241.0
GX1 LPSZ3S 96.1 216.9
MEL LPSS3X 4.23 204.1
LDD LPSS3X 4.23 100.2
input2
Fac AddName NewID ... (9 Replies)
Discussion started by: redse171
9 Replies
8. Shell Programming and Scripting
Hi all,
Say i have multiple files x1 x2 x3 x4, all with common header (date, time, year, age),,
How can I merge them to one singe file "X" in shell scripting
Thanks for your suggestions. (2 Replies)
Discussion started by: msarguru
2 Replies
9. UNIX for Dummies Questions & Answers
Hi, I am trying to selectively merge two files based on keys reported in the 1st column.
File1:
#file1-header1
file1-header2
111 qwe rtz uio
198 asd fgh jkl
165 yxc
789 poi uzt rew
89 lkj
File2:
#file2-header2
file2-header2
165 ghz nko2 ... (2 Replies)
Discussion started by: dovah
2 Replies
10. Shell Programming and Scripting
Hello,
I have 40 data files where the first three columns are the same (in theory) and the 4th column is different. Here is an example of three files,
file 2: A_f0_r179_pred.txt
Id Group Name E0
1 V N(,)'1 0.2904
2 V N(,)'2 0.3180
3 V N(,)'3 0.3277
4 V N(,)'4 0.3675
5 V N(,)'5 0.3456
... (8 Replies)
Discussion started by: LMHmedchem
8 Replies
pactl(1) General Commands Manual pactl(1)
NAME
pactl - Control a running PulseAudio sound server
SYNOPSIS
pactl [options] stat
pactl [options] list
pactl [options] exit
pactl [options] upload-sample FILENAME [NAME]
pactl [options] play-sample NAME [SINK]
pactl [options] remove-sample NAME
pactl [options] move-sink-input ID SINK
pactl [options] move-source-input ID SOURCE
pactl [options] load-module NAME [ARGUMENTS ...]
pactl [options] unload-module ID
pactl [options] suspend-sink [SINK] 1|0
pactl [options] suspend-source [SOURCE] 1|0
pactl --help
pactl --version
DESCRIPTION
pactl can be used to issue control commands to the PulseAudio sound server.
pactl only exposes a subset of the available operations. For the full set use the pacmd(1).
OPTIONS
-h | --help
Show help.
--version
Show version information.
-s | --server=SERVER
Choose the server to connect to.
-n | --client-name=NAME
Specify the client name pactl shall pass to the server when connecting.
stat Dump a few statistics about the PulseAudio daemon.
list Dump all currently loaded modules, available sinks, sources, streams and clients.
exit Asks the PulseAudio server to terminate.
upload-sample FILENAME [NAME]
Upload a sound from the specified audio file into the sample cache. The file types supported are those understood by libsndfile. The
sample in the cache is named after the audio file, unless the name is explicitly specified.
play-sample NAME [SINK]
Play the specified sample from the sample cache. It is played on the default sink, unless the symbolic name or the numerical index
of the sink to play it on is specified.
remove-sample NAME
Remove the specified sample from the sample cache.
move-sink-input ID SINK
Move the specified playback stream (identified by its numerical index) to the specified sink (identified by its symbolic name or
numerical index).
move-source-output ID SOURCE
Move the specified recording stream (identified by its numerical index) to the specified source (identified by its symbolic name or
numerical index).
load-module NAME [ARGUMENTS ...]
Load the specified module with the specified arguments into the running sound server. Prints the numeric index of the module just
loaded to STDOUT. You can use it to unload the module later.
unload-module ID
Unload the module instance identified by the specified numeric index.
unload-module ID
Unload the module instance identified by the specified numeric index.
suspend-sink SINK 1|0
Suspend or resume the specified sink (which my be specified either by its symbolic name, or by its numeric index), depending whether
1 (suspend) or 0 (resume) is passed as last argument. Suspending a sink will pause all playback. Depending on the module implement-
ing the sink this might have the effect that the underlying device is closed, making it available for other applications to use. The
exact behaviour depends on the module.
suspend-source SOURCE 1|0
Suspend or resume the specified source (which my be specified either by its symbolic name, or by its numeric index), depending
whether 1 (suspend) or 0 (resume) is passed as last argument. Suspending a source will pause all capturing. Depending on the module
implementing the source this might have the effect that the underlying device is closed, making it available for other applications
to use. The exact behaviour depends on the module.
AUTHORS
The PulseAudio Developers <mzchyfrnhqvb (at) 0pointer (dot) net>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO
pulseaudio(1), pacmd(1)
Manuals User pactl(1)