Forums Register Login

guide what approach to use

+Pie Number of slices to send: Send
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!!
+Pie Number of slices to send: Send
See this thread for some ideas. Are you guys doing the same assignment?

To help us out, tell us more about "apply some logic".
+Pie Number of slices to send: Send
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
Always! Wait. Never. Shut up. Look at this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 630 times.
Similar Threads
lock/unlock
Java Beginner's I/O Question
Understanding Byte Data and Character Encoding
NX: URLyBird 1.1.3 Find criteria
Theoretical doubt from K&B book : File.separator
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:09:11.