Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-27-2009, 10:13 AM   #1
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) few advises here and there would really help and especially - what is the fastest way to conquer "Everest" ?
Old 05-27-2009, 10:20 AM   #2
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, 10:23 AM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,945
Blog Entries: 14

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
This site may help:

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, 10:31 AM   #4
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

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, 11:34 AM   #5
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 11:39 AM.
Old 05-27-2009, 02:30 PM   #6
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738

Get the Bash Guide for Beginners by Machtelt Garrels
Old 05-27-2009, 06:12 PM   #7
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
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:
Old 05-27-2009, 06:14 PM   #8
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:
Old 05-27-2009, 07:14 PM   #9
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....


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-26-2008 11:50 PM
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
shell scripting.. where to start? f0rmula Linux - Software 5 02-11-2004 09:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 AM.

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