Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Shell scripting - What book is more useful for a beginner?

  1. #1
    Join Date
    Apr 2010
    Location
    i am location
    Posts
    1,421

    Default Shell scripting - What book is more useful for a beginner?

    Hi,
    since i decided to get more into script programming, i trying to figure out what book might be of a bigger help for a newbie.
    On Amazon i read, that UNIX(R) Shells by Example (4th Edition) is the best book since it comes also with examples a newbie can learn from.
    This book is from 2004 and i worry a little that it is old. But perhaps this doesn't matter.

    Anyway, would you recommend this book or are there better books to learn from. I lag the knowledge of the basics and i need to start somewhere to make good scripts.
    I started off to make for myself a script for installing nonfree stuff after a fresh install. Since i hate to enter everything by itself, i like to have it more automated. The lazy way i guess.
    But i would like to make it more convenient and efficient.

    So any tip or suggestion i will consider. It just need to be written for a real beginner with examples.

    Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Shell scripting - What book is more useful for a beginner?

    On 03/27/2011 11:36 PM, JoergJaeger wrote:
    >


    > So any tip or suggestion i will consider. It just need to be written
    > for a real beginner with examples.


    in order to study:

    1. much, but not all of "Rute User's Tutorial and Exposition"
    http://rute.2038bug.com/

    2. "Bash Guide for Beginners"
    a. http://tldp.org/LDP/Bash-Beginners-Guide/html/
    b. http://tille.garrels.be/training/bash/

    3. "Advanced Bash-Scripting Guide" link available on
    http://tldp.org/guides.html [that page has many other useful resources]

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD
    [NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
    173.14.28 3D, Athlon 64 3000+]
    "It is far easier to read, understand and follow the instructions than
    to undo the problems caused by not." DD 23 Jan 11

  3. #3
    Join Date
    Apr 2010
    Location
    i am location
    Posts
    1,421

    Default Re: Shell scripting - What book is more useful for a beginner?

    Great thing.
    Now i have something to read.

    I hope i learn something from it. In time i will know my computer a little better and with that, also Linux better.
    Thanks for the links.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,721

    Default Re: Shell scripting - What book is more useful for a beginner?

    Apart from DD's advice, never forget to consult the man page of bash during your study. It will teach you how to find the exact definitions of statments and that will come in handy later because a "normal" person will know by hart only a small subset of all bash stuff, but you will rememeber that "there was something like ..." and then being able to find that quick in the man page is a good thing.

    BTW, as bash is based on Ksh (and Posix shell) and all are considarable older than 2004 and have not seen further developements since, a book from 2004 (and older) is OK. I still use a paper man page from 1995 for ksh.
    Henk van Velden

  5. #5

    Default Re: Shell scripting - What book is more useful for a beginner?

    Quote Originally Posted by JoergJaeger View Post
    This book is from 2004 and i worry a little that it is old. But perhaps this doesn't matter.
    It certainly doesn't matter as much as, say, a 'Using KDE' book would do...

    I have to say, regarding the links in DenverD's post, those are the ones most often quoted, and they are worth reading, but I don't really find them all that helpful (probably me rather than anything else...but you may share my learning style), so you could also try:

    BASH Cures Cancer (OK, the site name maybe sets the bar a little high...)
    http://www.bash-hackers.org/wiki

    which I find are better at giving you fragments of code that you may want to consider and use as inspiration.

  6. #6
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: Shell scripting - What book is more useful for a beginner?

    Don't forget sed and awk.

  7. #7
    Join Date
    Apr 2010
    Location
    i am location
    Posts
    1,421

    Default Re: Shell scripting - What book is more useful for a beginner?

    Well, i took everything in consideration.
    But, is a book still relevant then? Seems like that this would already do.

  8. #8
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Shell scripting - What book is more useful for a beginner?

    On 03/29/2011 05:06 AM, JoergJaeger wrote:
    >
    > Well, i took everything in consideration.
    > But, is a book still relevant then?


    in addition to all the things available on the net, i also find it
    _very_ useful to have paper in my hand..

    my favorite happens to be what i _have_ a "Linux Unleashed - The
    Comprehensive Solution - Third Edition" which came with Red Hat 5.1
    when sold new in 1998..

    and it is right about 99% of the time (but, don't expect to find
    anything useful except *Linux* (that is, if you need KDE4 info, you
    are outta luck in that three pound book!))

    i bought it USED off the shelf, very reasonable (considering i've used
    it lots, since 2002) at Powell's Books....they ship:
    http://www.powells.com/ and have a searchable database

    --
    CAVEAT: http://is.gd/bpoMD
    Tried LibreOffice? Do that and help at http://is.gd/dZ9j2W
    [NNTP via openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8]

  9. #9
    Join Date
    Apr 2010
    Location
    i am location
    Posts
    1,421

    Default Re: Shell scripting - What book is more useful for a beginner?

    It seems to be not available anymore. But thanks for that tip as well.

    Oh, btw. their page had an error and it was kinda funny, since it reminded me really of my Amiga. Guru Meditation that is.

    [IMG] Bildschirmfoto1 by yester64, on Flickr[/IMG]

  10. #10

    Default Re: Shell scripting - What book is more useful for a beginner?

    Quote Originally Posted by JoergJaeger View Post
    Great thing.
    Now i have something to read.

    I hope i learn something from it. In time i will know my computer a little better and with that, also Linux better.
    Thanks for the links.
    My favorite is the O'Reilly series :
    Ellen Siever, Linux in a Nutshell | Free eBooks Download - EBOOKEE!

    It's comprehensive and groups, Linux commands, BASH commands, SED, AWK, vi, emacs, pattern recognition, tcsh/csh, package management, version controls, etc. with examples in most cases. I think great for beginners and old timers alike.

    Here's a beginners site:
    BASH Programming - Introduction HOW-TO

    Here's a site for interesting BASH/Linux commands you can get lost in by copying from and pasting to your terminal just to see how it works. And if you're a registered user give it a thumbs up or down:
    All commands | commandlinefu.com

    One of my first shell scripts was to capture and sort uniquely my bash history so when I vaguely remember a command, i could go to that file to see how I used it. Later I updated it to exclude obvious commands and those that only differ by a file/folder name, like cp, etc.
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •