LinuxQuestions.org
Visit Jeremy's Blog.
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 05-27-2009, 11:13 AM   #1
pedrilio
LQ Newbie
 
Registered: May 2009
Location: Montreal, Canada
Distribution: OpenSUSE, BT4, RedHat
Posts: 2

Rep: Reputation: 0
Shell Scripting , where to start....?


I am new at shell scripting and I need it urgently (job related)
...so few advises here and there would really help and especially - what is the fastest way to conquer "Everest" ?
 
Old 05-27-2009, 11:20 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
There is no fastest way. You can begin with "OReilly.Learning.the.bash.Shell.3rd.Edition.Mar.2005.chm".
 
Old 05-27-2009, 11:23 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
This site may help:

http://www.linuxconfig.org/Bash_scripting_Tutorial


A script can be something as simple as a command put in a script.
e.g. Say you type "ls -l" from command line to get a long listing. However, being lazy you'd rather type a single letter (e.g. "l").
Just "vi l" and add the line "ls -l" to it. Write and save. Make the file "l" executable with the chmod command.

The above is actually not a great example because it would be simpler to use bash's alias feature to do that but it gives you the idea.
 
Old 05-27-2009, 11:31 AM   #4
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 297

Rep: Reputation: 62
If the job site uses AIX, Solaris or HP-UX, then you probably should learn the Korn shell (ksh) rather than bash.
 
Old 05-27-2009, 12:34 PM   #5
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
If you're the book learning type, this is the one I originally learned with:
Unix Shell Programming (3rd Edition) (Paperback)
by Stephen Kochan, Patrick Wood

But, of course, I learned with 2nd Edition.

If you have a couple more specifics about distro, available/required scripting languages, etc. It might be a little easier to point you in a good direction. Shell scripting can be a lot of things and can be really complex, or very easy (as jlightner mentioned), depending on the task.

Edit: I've heard the O'Reily book, "Shell Scripting" by Arnold Robbins and Nelson H.F. Beebe, is also good.

Last edited by nuwen52; 05-27-2009 at 12:39 PM.
 
Old 05-27-2009, 03:30 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
http://tldp.org

Get the Bash Guide for Beginners by Machtelt Garrels
 
Old 05-27-2009, 07:12 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Yep tldp has good stuff (look for the Beginners Guide and Advanced guide), also this is a good tutorial for linux in general and bash:
http://rute.2038bug.com/index.html.gz
 
Old 05-27-2009, 07:14 PM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@pedrilio: If you're already a programmer, Bourne/bash shell will likely be a snap. Add this to your list of resources: http://www.tldp.org/LDP/abs/html/
 
Old 05-27-2009, 08:14 PM   #9
pedrilio
LQ Newbie
 
Registered: May 2009
Location: Montreal, Canada
Distribution: OpenSUSE, BT4, RedHat
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks everybody, this is more than enough info to get the ball rolling....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-27-2008 12:50 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 05:29 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 04:32 PM
shell scripting.. where to start? f0rmula Linux - Software 5 02-11-2004 10:24 AM


All times are GMT -5. The time now is 09:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration