06-12-2009
perl merge two files by the time sequence
Hi Guys,
i have two files:
fileA:
20090611 00:00:11
20090611 00:00:11
20090611 00:00:24
20090611 00:01:10
20090611 07:13:00
fileB:
20090611 00:00:01
20090611 00:00:12
20090611 00:00:24
20090611 00:01:12
20090611 09:13:00
want to make two files into a single file, but follow the time sequence, the output fileC:
20090611 00:00:01
20090611 00:00:11
20090611 00:00:11
20090611 00:00:12
20090611 00:00:24
20090611 00:00:24
20090611 00:01:10
20090611 00:01:12
20090611 07:13:00
20090611 09:13:00
instead of one by one compare the time, any simple way to doing it?
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to merge two or more files using perl in windows only(Just like Paste command in Unix script) . How can i do this.Is ther any single command to do this?
Thanks
Kunal (1 Reply)
Discussion started by: kunal_dixit
1 Replies
2. Shell Programming and Scripting
ould we generate a sequence number based on the time of the day?
e.g. an application is scheduled to run from 0800 hrs to 1700 hrs with a frequency of Once every five minutes
the intention is to "assign" a certain value to a variable when depending on the time of the day
i.e. if the time... (6 Replies)
Discussion started by: zainravi
6 Replies
3. UNIX for Dummies Questions & Answers
hi all,
hope someone can assist in this. I'm trying to make a sequence of time in bash so that the output prints the following;
1950-01-01
1950-02-01
1950-03-01
...
1999-11-01
1999-12-01
In R, i can issue the following command;
t1 <- ISOdate(1950,1,1,0,0,0)
t2 <-... (0 Replies)
Discussion started by: Muhammad Rahiz
0 Replies
4. Shell Programming and Scripting
Hi,
I have 2 files.
a.txt & b.txt
# a.txt contains the following text.
apple
grapes
# b.txt contains the following text.
banana
pine
My question is. (1 Reply)
Discussion started by: vanitham
1 Replies
5. Programming
Dear Perl's Users,
Could anyone help me how to solve my problem. I have data with details below.
TTY NAME SEQUENCES
U-0 UNIX 0
U-1 UNIX 1
U-2 UNIX 2 <-- From 2 jump to 5
U-5 UNIX 5
U-6 UNIX 6 <-- From 6 jump to 20
U-20 ... (2 Replies)
Discussion started by: askari
2 Replies
6. Shell Programming and Scripting
Hi All ,
Below is the perl code. from below code want to confirm one thing that
wahtever the sequence of data we are passing through json format which contains 3 tuples of different sequences
Eg:
ParentID,SystemID,SendingTime,Time,ClientLocation,ClientID,
... (1 Reply)
Discussion started by: aish11
1 Replies
7. Shell Programming and Scripting
Hi All
I am stuck in a problem and wants help
What i want to do is I have a directory(say name of that directory is outdir) In that directory(outdir) the files come after some gap of time by some processes.
What i want to do is i want to list all the files in that directory after the given... (2 Replies)
Discussion started by: parthmittal2007
2 Replies
8. Shell Programming and Scripting
I have two files, these have to be selectively merged into two other files. In addition there will require to be a edit to the last field, where the date format is changed.
The first file is a csv file with around 300k lines the data is now nearly 20 years old and I have been asked to move this... (7 Replies)
Discussion started by: gull04
7 Replies
9. Shell Programming and Scripting
All,
I have an excel sheet Excel1.xls that has some entries.
I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls
These may be in different workbooks. They are totally independent made by 2 different users.
I have placed them in a... (1 Reply)
Discussion started by: Anamika08
1 Replies
10. Shell Programming and Scripting
I have two input file.:
File 1 is a large reference sequence (A large Fasta sequence);
File 1 (is a file which first line is the header description and line other ">" is its corresponding word and counting from 1 till end of file);
>Data_1
ASWDADAQTWQQGSAAAAASDAFAFA
.
.
File 2 is... (31 Replies)
Discussion started by: cpp_beginner
31 Replies