Linux.com

Home Linux Community Forums Linux System Administration Command Line/Scripting what's a good 'language' to learn for scripting?

what's a good 'language' to learn for scripting?

Link to this post 09 Jul 11

SOLVED: If I want to learn a computer language to use in scripting, what language would be best? I have written a few short scripts in 'bash' (I don't know if that is consider a computer language). But I see some discussions about perl, python, etc. and they seem to be more powerful - or is that just an illusion?

If you can suggest tome a good language for that purpose, can you also suggest a good source of understandable documentation, and/ or simple and thorough tutorial or book to study it?

Thanks

Link to this post 10 Jul 11

Each scripting language including the shells has their uses and most people mix and match to best fit their goal, I recommend focusing on bash to learn the potential and limitations, then you can move on to perl which has a great library of shared functions in cpan for you to learn from and use to save development time.

Link to this post 10 Jul 11

littlejoe5 wrote:

If I want to learn a computer language to use in scripting, what language would be best? I have written a few short scripts in 'bash' (I don't know if that is consider a computer language). But I see some discussions about perl, python, etc. and they seem to be more powerful - or is that just an illusion?

If you can suggest tome a good language for that purpose, can you also suggest a good source of understandable documentation, and/ or simple and thorough tutorial or book to study it?

Thanks

That depends on what you wanna use the language for.

Anyway if I am to say some... I'd learn bash or perl

Link to this post 10 Jul 11

BASH is pretty universal and powerful, but if you want something mightier I would suggest Python. You can use it for simple scripts, but also for complex applications, it's really easy to learn and if you come across a 6 months old script you will still know what it does (unlike Perl :) )

Link to this post 10 Jul 11

What language is the best and whats is the most powerful? Why would you want the best and the most powerful? And not the one that you got most use of or that is easiest to learn. If you think about it like that you see that it all depends on what you what to do.

You have a nice list here that ranks all languages, not only script languages (use it to get a hint): http://www.tiobe.com/index.php/content/paperinfo/tpci/

Python has a lot of documentation at: http://www.python.org/doc/

Link to this post 10 Jul 11

Thanks for all of your answers. Looks like it's a huge subject, but you've given me some starting points

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board