After Learning Shell Scripting

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers After Learning Shell Scripting
# 1  
Old 01-17-2016
After Learning Shell Scripting

Will it be good to learn 1) Perl or 2) Ruby first?
# 2  
Old 01-17-2016
Both of them would be good for you to learn. The order which you learn it will be up to you. If you are looking for some influence to make your decision, consider these:
Perl has a great hold in the administration of Unix and Unix-like systems. However, Perl OOP (Object Orientate Programming) was an evolution or after thought and some might say, clunky.
Ruby can replace Perl in the administration of a system. Many of the same ideas in Perl you find them in Ruby but converted to OOP. I like to think of Ruby as a reinvention of Perl with OOP in mind.
# 3  
Old 01-17-2016
There is no "best", there is only what fits your skills and needs. If you are actually proficient with any shell you will already understand a lot of programming concepts - loops, redirection, conditional branches, error handling - for example.

So, learning either one is good. perl is much more like shell, easier to learn from that perspective. ruby is an excellent language but there are some foreign concepts in there relative to shell scripting.

BTW, you can do one heck of a lot of programming with a modern shell. Some shells directly support floating point arithmetic operations - like ksh93.

I would really really concentrate hard on shell scripting, regular expressions, awk, and sed. That will get you pretty far. Wait for other languages.
# 4  
Old 01-18-2016
IMHO, I get a lot of use out of scripting with Bash. I have written most of my shell scripts with Bash. I also do Perl programming. I mostly do Perl because it is a requirement for my job. I don't like that it is loosely typed, doesn't handle NULL very well and the error handling is terrible. Perhaps Python or Ruby would do a better job. But you can get a lot done with Bash.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

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... (3 Replies)
Discussion started by: Pouchie1
3 Replies

3. 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

4. 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

5. 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

6. 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

7. Shell Programming and Scripting

learning how to use shell script

hello everyone, i am still trying to get this script to work, but with no luck. It is a little beyond my knowledge of scripting at the moment. The beginner book i have has an exercise listed that asks me to write a script tha allows for user input. For example " what is your name: " and then you... (3 Replies)
Discussion started by: bebop1111116
3 Replies

8. Shell Programming and Scripting

A Text for learning the SH shell

Know a very best Text for learning the SH shell (standard shell)?? can you speak a text for me ??? (1 Reply)
Discussion started by: ZINGARO
1 Replies

9. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

10. 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
Login or Register to Ask a Question