LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell Scripting (http://www.linuxquestions.org/questions/linux-newbie-8/shell-scripting-913650/)

piyusharora420 11-15-2011 07:38 AM

Shell Scripting
 
Hell Everyone,

I have done B.Tech in Electronics but I have interest in IT field. I am little bit familiar with linux networking, configuring servers, user management. I have heard that we can automate command execution with shell scripting and according to me that is basic shell scripting. I want to know which programming languages should I learn so that I can do advance shell scripting? Please explain in detail, if possible.

Thanx in Advance.

Jenni 11-15-2011 07:59 AM

I'm not entirely sure what you're asking, but perhaps you could start here: http://tldp.org/LDP/abs/html/index.html
For getting started with shell scripting.

piyusharora420 11-15-2011 08:16 AM

Thanx for reply Jenni. The link seems to be helpful. I will explore it. I am curious to know about shell programming. Which language should I learn so that I can learn shell scripting. I am not sure if it makes sense.

Jenni 11-15-2011 08:21 AM

Well, you'll be dealing with bash most of the time on linux, so that's probably the best place to start. I'm not sure what other common shells are, but I've come across (t)csh (c shell) once or twice too.

sycamorex 11-15-2011 08:22 AM

Quote:

Originally Posted by piyusharora420 (Post 4524605)
Which language should I learn so that I can learn shell scripting. I am not sure if it makes sense.

Bash is one of the most common shells on Linux. It's the default shell on most Linux distributions.

inoculos 11-15-2011 06:31 PM

Shell scripting doesn't require a language. You are really just stacking individual commands in an order that makes sense and saving them so you dont have to type them over and over again. Most linux tutorials have introductory shell scripting introductions that you can get started with

This should keep you busy for awhile...
http://steve-parker.org/sh/intro.shtml

and when your done with that :

http://www.linuxjournal.com/content/...pting-language

chrism01 11-15-2011 06:36 PM

Try these
http://rute.2038bug.com/index.html.gz - Linux at the cmd line, using bash
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html - bash beginners (quite comprehensive actually)
http://www.tldp.org/LDP/abs/html/ - bash advanced (as above); really just more techniques rather than more complex.

You'll need to learn the basics of a few other tools eg sed, awk, cut, find (v useful), etc ..

For more powerful scripting/programming, but without doing compiles & linking, try Perl
http://perldoc.perl.org/
http://www.perlmonks.org/?node=Tutorials

piyusharora420 11-15-2011 11:46 PM

Thanks everyone. I got it now.


All times are GMT -5. The time now is 11:12 PM.