Hi,
i have the files f1 and f2 like:
files f1:
c1 a1
c2 a2
c3 a3
file f2:
c1 b1
c2 b2
c3 b3
i want merge the f1 and f2 file to f3 file like:
c1 a1 b1
c2 a2 b3
c3 a3 b3........
....
.
.
please help me onthis..... (5 Replies)
I have two files, each of them has 12 lines, fileA has 3 columns, fileB has 1 column, like the following
FileA
a 1
b 2
c 3
..blabla
FileB
A
B
C
..blabla
Now I am trying to put the content of fileB as column 3 of fileA, e.g.
a 1 A
b 2 B
c 3 C (3 Replies)
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)
hi
i have two files
file1
1234567
1234678
1234679
file2
98765|jjkskk|9393|iyutr
98765|kkooo|9393|hjjjd
98765|abcvfg|9393|sskds
output should be
1234567|jjkskk|9393|iyutr
1234678|kkooo|9393|hjjjd
1234679|abcvfg|9393|sskds (5 Replies)
Hi ,
This might be the stupidest question I am asking, but I am struck with this problem. I am trying to merge 2 files, file1 has header and file2 has contents. while I merge them , it merges from the 1st line of file1.
for ex: file1
col1|col2|col3|
file2
123|234|456|... (2 Replies)
Hi all!
How could I merge all the text files (in format xml) of a single folder, after having deleted from each of them all the text from its beginning up to a specific string: "<body>" ?
Thanks a lot!
mjomba (4 Replies)
Hi,
I would like to know how can I merge files based on their coordinates, but mantaining the score of each file in the output file like:
Note: 1st column is for chromosome, 2nd for start, 3rd for end of segment, 4th for score
file1:
1 200 300 20
1 400 500 30
file2:
1 200 350 30
1... (1 Reply)
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Dear Frens,
I have two files and need to merge into one file. Like
File_1:
Field1 Field2
1 4
File_2:
Field1 Field2
3 5
I need one single output as
File_1:
Field1 Field2
1 4
3 5
This means taking header from either file. (8 Replies)
Discussion started by: manisha_singh
8 Replies
LEARN ABOUT DEBIAN
unsort
UNSORT(1) BSD General Commands Manual UNSORT(1)NAME
unsort -- reorder lines in a file in semirandom ways
SYNOPSIS
unsort [-hvrpncmMsz0l] [--help] [--version] [--random] [--heuristic] [--identity] [--concatenate] [--merge] [--merge-random] [--seed integer]
[--zero-terminated] [--null] [--linefeed] [file ...]
DESCRIPTION
unsort prints the lines in the input files (or standard input) in semi-random order. Available algorithms are a Mersenne Twister based PRNG
and a heuristic algorithm that aims to create a subjective even distribution.
Command line options
-h, --help
Display a concise summary of the available options and argument syntax.
-v, --version
Display version and copyright information.
-r, --random
Use the Mersenne Twister based randomization algorithm.
-p, --heuristic
Use the heuristic "shuffling" algorithm which permutes the lines in such a way that they're spread more or less evenly in the output.
This is the default.
-n, --identity
Do not reorder lines in the input. Useful if you just want to merge the files.
-r, --concatenate
Concatenate all input files then apply the shuffling algorithm to the result as a whole.
-m, --merge
Shuffle all input files seperately then merge the result. Equal-sized files will be merged in the order in which they appear on the
command line.
-M, --merge-random
Shuffle all input files seperately then merge the result. Equal-sized files will be merged in random order. This is the default.
-s, --seed integer
Use this integer as a seed, instead of random data from the environment.
-z, --zero-terminated, -0, --null
Lines are terminated with a character.
-l, --linefeed
Lines are terminated with a
character. This is the default.
SEE ALSO sort(1)Free Software June 1, 2019 Free Software