Learning Scripting


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Learning Scripting
# 1  
Old 08-26-2010
Learning Scripting

Hi All,

I am facing an issue. I need your advise. I want to take my unix skills to the next level. I want to verse in scripting now. I got some understanding of programming. I did a little bit of C++, Assembly in College.
I got some basics in perl. I am wondering if It would be best to familiarize myself more with perl or to start learning KSH. I am asking because I wouldn't like to keep learning Perl and than I need to do some stuffs that I can't do in perl and that would be easier in KSH. ( I am saying KSH because I could see a lot of people are using it).

So, If you think that it would be best to master KSH first, please recommend the best book for me to get. So, my bigger problem is which language I need to focus on now: Perl or KSH?

Please note, I alreay read a lot in the FAQ in the forums on that matter and didn't find the ansswer to my specific matter.

Thanks so much,
# 2  
Old 08-26-2010
Learn Perl!
It's the only shell language you have to learn.
You can do "anything" with it!
# 3  
Old 08-26-2010
I second what markkusi said about Perl. Everything that KSH can do, can be done in Perl, plus many many more. The thing is, some problems are easier to achieve with other tools. For field/text processing I would suggest AWK, which can be huge timesaver, when used properly. Plus when you are used to programming in AWK, some problems become so trivial, that you solve them without even much thinking Smilie
# 4  
Old 08-26-2010
Quote:
Originally Posted by markkusi
Learn Perl!
It's the only shell language you have to learn.
You can do "anything" with it!
Perl is not a shell langage. There's no runtime prompt, it's completely noninteractive. The same goes for awk.

So, the shell you'll be using to run these perl scripts will probably be KSH. You might as well learn to use it properly.

Last edited by Corona688; 08-26-2010 at 03:43 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

After Learning Shell Scripting

Will it be good to learn 1) Perl or 2) Ruby first? (3 Replies)
Discussion started by: alvinoo
3 Replies

2. Shell Programming and Scripting

I am learning shell scripting and i would like to understand how sort -k3,3 -k 4,4 short* works

Please help me understand how sort -k3,3 -k 4,4 short* works , is it sorting 3 and 4 th field ? what is the use of specifying 3,3 and 4,4 in sort and what is actually does and i see sort -k3 short* and sort -k3,3 -k 4,4 short* giving the same output. Sort output attached Please help (2 Replies)
Discussion started by: Antony Ankrose
2 Replies

3. Programming

Learning C with CBT?

Hello All, I am a beginner in C, although I believe my learning curve is rather steep. I would like to know if any of you would have some recommendations with some learning materials to become a good C developer. I am particularly thinking about some CBT courses or some good Quizz that would... (2 Replies)
Discussion started by: freddie50
2 Replies

4. Shell Programming and Scripting

Shell scripting book learning.

Hi Which is the most useful shell scripting book. Planning to learn shell scripting.Thanks in advance. (1 Reply)
Discussion started by: arunvellanki
1 Replies

5. UNIX for Dummies Questions & Answers

Book for Learning unix shell scripting reall good

Hi guys I want o learn and understand shell scripting real good, Ive got already some background Due to the fact that there is ton of books with these theme, can you recommend me some good book with with examples explanations, pls no theoretical books :D Thxs (3 Replies)
Discussion started by: kl1ngac1k
3 Replies

6. Shell Programming and Scripting

Learning scripting -- functions capturing output

Hi, everyone! First post here. I just assembled my first Linux computer and I'm trying to teach myself shell scripting. (Xubuntu and bash, respectively, but I'm not tied to either.) I'm writing a program to deal with different kinds of files (to be executed from a text editor -- LaTeX'ing a... (9 Replies)
Discussion started by: CRGreathouse
9 Replies

7. Shell Programming and Scripting

Suggested Books for Learning Shell scripting

Hi, I had completed RHCE and i am interested to learn shell scripting. Request you to please let me know which book is best for learning shell scripting or any online website. Thanks & Regards arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

8. Shell Programming and Scripting

Learning Shell Scripting

I'm new to UNIX and I want to learn Shell Scripting. I want a web site that has Shell Scripting tutorials. Any suggesstions?.? (3 Replies)
Discussion started by: liveapple2000
3 Replies

9. UNIX for Dummies Questions & Answers

learning on my own

can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work if statement then statement do or for or while statement done else statement fi.... I dont know how else to explain that...I hope I... (2 Replies)
Discussion started by: jonas27
2 Replies
Login or Register to Ask a Question