PDA

View Full Version : Good Bash/Scripting book?


cwhitmore
08-13-2008, 08:29 PM
Can someone suggest a good scripting book? I've looked over the FreeBSD site, but couldn't find anything on scripting. A book with lots of examples would be nice.

ninjatux
08-13-2008, 08:45 PM
http://tldp.org/LDP/abs/html/

That should cover everything you need for Bash and derivative shells. It's actually a textbook recommend for a course, available freely. There is a pdf version available for free. I've gotten through the first ten chappters, and it's very well written with tons of examples.

cwhitmore
08-13-2008, 08:50 PM
Exactly what I was looking for. Thanks!

crayoxide
08-14-2008, 03:10 AM
http://tldp.org/LDP/abs/html/sweet. Thanks for the link.

vermaden
08-14-2008, 06:29 AM
Also check Shell Scripting Primer from Apple:
http://developer.apple.com/documentation/OpenSource/Conceptual/ShellScripting/shell_scripts/chapter_2_section_1.html

You may also check this script for advanced script example:
http://toya.net.pl/~vermaden/text/vergallery.sh

scottro
08-14-2008, 12:31 PM
I have a page with a few links, most of which I like better than the ldp ones.
http://home.nyc.rr.com/computertaijutsu/shellscripting.html

As for books, the Sams Teach Yourself Shell Scripting in 24 hours is not bad as well as the Unix Shell Programming (3rd edition--the 4th edition is by someone else and apparently not as good). The 3rd edition is here
http://www.amazon.com/Unix-Shell-Programming-Stephen-Kochan/dp/0672324903/ref=pd_bbs_3?ie=UTF8&s=books&qid=1218713405&sr=8-3

ocicat
08-14-2008, 02:29 PM
Can someone suggest a good scripting book?

Unix Shell Programming by Stephen Kochan:

http://www.amazon.com/Unix-Shell-Programming-Stephen-Kochan/dp/0672324903/ref=pd_bbs_5?ie=UTF8&s=books&qid=1218720068&sr=8-5
Unix Shells by Example by Ellie Quigby:

http://www.amazon.com/Unix-Shells-Example-Ellie-Quigley/dp/B001DYVQ78/ref=sr_1_4?ie=UTF8&s=books&qid=1218720362&sr=1-4
Mastering Unix Shell Scripting by Randall K. Michael:

http://www.amazon.com/Mastering-Unix-Shell-Scripting-Administrators/dp/0470183012/ref=sr_1_6?ie=UTF8&s=books&qid=1218720362&sr=1-6


You may find some value in another online tutorial:

http://steve-parker.org/sh/sh.shtml

Enjoy.

J65nko
08-15-2008, 02:54 AM
There is a review of a Bash Cookbook at Slashdot: http://books.slashdot.org/books/08/08/13/137246.shtml

I learnt a lot of my scripting by studying the FreeBSD and OpenBSD rc start up scripts.