LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 11-15-2011, 07:38 AM   #1
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Rep: Reputation: 0
Smile 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.
 
Old 11-15-2011, 07:59 AM   #2
Jenni
Member
 
Registered: Oct 2011
Distribution: Slackware, Fedora
Posts: 158

Rep: Reputation: Disabled
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.
 
Old 11-15-2011, 08:16 AM   #3
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
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.
 
Old 11-15-2011, 08:21 AM   #4
Jenni
Member
 
Registered: Oct 2011
Distribution: Slackware, Fedora
Posts: 158

Rep: Reputation: Disabled
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.
 
Old 11-15-2011, 08:22 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by piyusharora420 View Post
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.
 
Old 11-15-2011, 06:31 PM   #6
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
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

Last edited by inoculos; 11-15-2011 at 06:34 PM.
 
Old 11-15-2011, 06:36 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
 
Old 11-15-2011, 11:46 PM   #8
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
Thanks everyone. I got it now.
 
  


Reply

Tags
script, scripting, shell scripting, shells



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Terminal functions for shell scripting with Shell Curses LXer Syndicated Linux News 0 03-26-2008 11:50 PM
SHELL scripting/ shell functions mayaabboud Linux - Newbie 6 12-26-2007 08:18 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 04:29 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration