CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [BillKSmith] How to put the data of two file into the third file in a different fashion: Edit Log



mail4deveshg
Novice

Jul 13, 2011, 10:07 PM


Views: 1881
Re: [BillKSmith] How to put the data of two file into the third file in a different fashion

Hi Bill,



Thanks for your reply.

Actually I have three files. Here below are the formats of all these files.

A.txt
00927
00923
00937

B.txt
00927,14/07/2011,200
00921,14/07/2011,100

C.txt
00876
00826
00716


My Problem:

First I have to search the 00927 (from the A.txt file) in the B.txt file. If it exists I have to update that row with the today date and the next number (200, it is some standard value) in the B.txt file. Then I have to prepare a command that include the 00876 from the C.txt file and write it to next file D.txt.



If it not exists in the B.txt file then I have to take the value 00937 form the A.txt file and update the B.txt files.
00937,14/07/2011,100 // like that


Command format: (This command I have to write in the D.txt file)

../bin/abcFor/ -t 00927 r 00876

../bin/abcFor/ -t 00923 r 00826

../bin/abcFor/ -t 00937 r 00716



Hope this helps.


Thanks,
Devesh


(This post was edited by mail4deveshg on Jul 13, 2011, 10:11 PM)


Edit Log:
Post edited by mail4deveshg (Novice) on Jul 13, 2011, 10:11 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives