Originally Posted by sfx81
Hi All, I recently started learning linux. When people say shell scripting, does it always has to be bash/c/k shells ? Can't I just use perl/python ? PS will it still be quick as shall ?
I agree with Snark, but there's a bit of a distinction in my mind.
Perl and Python are interpreted languages (http://en.wikipedia.org/wiki/Interpreted_language
), whereas bash and other 'shells' are more of a command environment. You can do SOME
programming in bash, but if you want to go beyond basic functions, you're going to find yourself struggling. Perl and python (and there are others), are 'real' programming languages, capable of doing object-oriented processing, GUI windows, and serious math, amongst others.
Think about it like this..in Windows, you can write a batch file to do alot of different things. That's the equivalent of BASH scripting. More power needed? Then you're going to have to go to a different language, like perl, which gives you more programming power. Yes, you can 'compile' perl (check out the perl packager), to ship executables without shipping your source code. Those languages run a bit slower, since the code is 'compiled' at run time, versus being pre-compiled like a C program would be...but once they're both running, the difference isn't that bad.