[SOLVED] Best Scripting Language for beginner : Bash vs Python vs Perl
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Best Scripting Language for beginner : Bash vs Python vs Perl
I have reasonable experience in linux based systems. I want to learn a scripting language , can anyone out there suggest which one is the best to start with ? I would be grateful if anyone can provide me with links / books references as well ...
What exactly would you use Perl or Python for in Linux?
All I know is that "Shell" is a program that takes commands from the keyboard and sends them to Linux for processing. And the totality of my shell knowledge is how to access my VPS using SSH and how to copy a file to another directory while maintaining its original modified date!
I guess I don't really understand what shell is sued for besides simple one-off commands.
It is pretty hard for me to figure out where Perl or Python would come in?! (I am a programmer by nature, and used to building websites. When I think of something like Python, I think of building an e-commerce or social media website...)
actually a shell script is a collection of commands to execute them automatically without typing them again and again. but of course it can do a bit more (not only execute commands), because it has variables, redirection, loops and a lot of other features.
Sometimes the capabilities of the shell are not really enough. python, perl and several other languages are more powerful, so you can implement much complex logic or workflow.
As has been said before, bash is essential (especially at work) because it's always there, but you can't be sure of having Python or Perl.
The only home-made bits of bash that I have are scripts, one for for backing up, and one that runs at boot and removes flash cookies (evil!), thumbnails (they breed like wire coathangers), and gvfs-metadata (ditto).
shows a lot of things done with bash, ranging from finding the days between two dates, through making a dictionary, to an implementation of the game of Life.
Distribution: BSD & Linux - As long as they are Lightweight
Basically, the shell runs O/S commands in various ways, whilst Perl, Python, LUA, etc, are (non compiling) programming languages, they are often used to create one off GUI programs, using GTK, QT, FLTK, etc.
A knowledge of shell scripting can take you a long way; non compiling languages are easier to debug than compiled code like C, C++, Assembler, etc.
Python and Perl should be thought of as programming languages, and they are not used for the same things as BASH. Yes, technically they are "scripting languages", but "scripting language" this context does not mean "language used for shell scripting."