Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

guide what approach to use

 
Raj Bhandari
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need some guidance on what approach should I use to solve this problem:

I have an ascii file, say file1 on a unix system. I have to read that file, apply some logic and output the result in another ascii file, say file2. The problem is that the file1 has > 100,000 records. So which of these A, B or C is a good approach:

A. Program in Java (or even C)... but bcos there are so many records, searching based on the logic will take lot of time. Also if I do this in Java, how do I deploy this on the unix box so that its scheduled to run automatically.

B. Load the ascii file in a database, perform some sql and dump it back to output ascii file. So there's no java or c involved here.

I'm not looking for the implementation detail but just the basic approach to take or even any good way or feature of unix I should study or something else. Thanks a lot!!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this thread for some ideas. Are you guys doing the same assignment?

To help us out, tell us more about "apply some logic".
 
Raj Bhandari
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stan,
I checked that thread and perhaps it might seem that its some assignment, but the fact is its not.. its on the job problem for me.
Moreover, I thought I was just asking for the approach not the solution. Being new to Unix, I wanted to see what are the good options to do this.. C, Java, Perl, Shell script or sql ?
Having now some experience with Java, I was wondering how do I deploy this on Unix and the client said he runs a script to call exes to do his other tasks and I was wondering if I program this in Java, and bcos we don't have exes in java, how do I deploy this in Unix.
Also if Perl will be more efficient. Just looking at the options.
Tks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic