What is the best way to parsing, handle files ksh, perl, c++
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ksh: The ksh option would be easy to get something together and parsing quickly. ksh would be a good option for simple parsing. ksh wouild also likely be slower than perl and c because if it's need spawn processes, (awk, sed, etc...) to parse the files.
perl: Good option of you know perl. Perl has great parsing abilities would be pretty quick. If you know perl, I'd suggest you use it, if you don't there may be quite a learning curve to get started.
C, C++: Not the best for just parsing files. Would probably require the most code out of the three, but once coded and tested, it would probably be the fastest.
Java: You didn't mention this one, but it would be my choice since I've never taken the time to learn Perl that well. There are all sorts of libraries to make parsing easy, like apache's commons string stuff.
Of the three you listed, my vote goes to Perl. Manual pages abound for Perl and all it's components, so if you get stuck you've always got online documentation (in addition to LQ).
Another decent choice IMO would be Ruby; almost all the features of Perl in terms of text processing, but with syntax and semantics that might prove easier to understand and use. It's a tad slower than Perl, though.
I have a mess on some systems and I'm trying to improve the processsing on the servers as most of the processing work is done by ksh and some with Perl.
On these servers, it is also installed JAVA but so far is not used.
I know JAVA and C++, a little bit of Perl. Therefore, I guess the best way to resolved my problem of FILE PARSING and processing is going to be JAVA.
What do you thing into use JAVA for parsing and processing files?
I have never used JAVA for parsing files.
I'm considering also Perl, but for now still my second option as I'm not expert on this lenguage.
I need to study more on that way