Doug Kramer (Java, Google.com) says:
"When I started writing CGI script in Bourne shell on the Java team at Sun, I scoured the Internet for a good tutorial and used Steve Parker's guide, which I really like. Now that I've moved to Google and switched to Linux and bash, I've decided to use it as the basis for an in-house introductory course on bash scripting here at Google for our tech writers. I highly recommend it as accurate and written at the right level, plus it includes a useful reference"
look through the start up scripts in /etc and see how they do what they do.Sounds like a potentially useful source of real-world example code. Thanks for the tip :Thmbsup:-MilesAhead (July 06, 2011, 09:27 PM)
If you don't want/need to restrict yourself to online and/or free resources, check out this book (http://www.amazon.com/Practical-Guide-Commands-Editors-Programming/dp/0131367366/ref=sr_1_6?ie=UTF8&qid=1310005957&sr=8-6).I see that bits of this book are available for preview via:-40hz (July 06, 2011, 09:41 PM)
May be I'll have the opportunity to browse physical copies at a bookstore before too long.-ewemoa (July 07, 2011, 03:49 AM)
One thing I've learned - you can't always trust Amazon's reviews.It's certainly challenging to decode whatever signal might be there sometimes :)-40hz (July 07, 2011, 05:48 AM)
I appreciate their "Look Inside" feature when it's available -- in the current situation, that appears to be "yes" for the admin book and "no" for Sobell's book.Sorry if I was unclear above :-[-ewemoa (July 09, 2011, 01:03 AM)
BTW - many of the online resources I cited are available as PDF, and so should be printable at home or by any freindly neighborhood printing service.
Lulu.com also has many of them available has hard and soft covers, but they're not exactly cheap.
As for part 3, I think it's less about Gentoo than it is an example of how to code an entire application in bash script.I suppose so. I guess one might be helped slightly in understanding the article assuming some prior experience with Gentoo, but perhaps not a whole lot.-Edvard (July 09, 2011, 11:41 PM)
BTW - many of the online resources I cited are available as PDF, and so should be printable at home or by any freindly neighborhood printing service.Thanks for the tip!
Lulu.com also has many of them available has hard and soft covers, but they're not exactly cheap.-Edvard
The primary reason for writing this document is that a lot of readers feel the existing HOWTO to be too short and incomplete, while the Bash Scripting guide is too much of a reference work. There is nothing in between these two extremes. I also wrote this guide on the general principal that not enough free basic courses are available, though they should be.
This is a practical guide which, while not always being too serious, tries to give real-life instead of theoretical examples. I partly wrote it because I don't get excited with stripped down and over-simplified examples written by people who know what they are talking about, showing some really cool Bash feature so much out of its context that you cannot ever use it in practical circumstances. You can read that sort of stuff after finishing this book, which contains exercises and examples that will help you survive in the real world.
From my experience as UNIX/Linux user, system administrator and trainer, I know that people can have years of daily interaction with their systems, without having the slightest knowledge of task automation. Thus they often think that UNIX is not userfriendly, and even worse, they get the impression that it is slow and old-fashioned. This problem is another one that can be remedied by this guide.
Looking around the site, came across::o
The Comprehensive List of bash Reference Documentation and Examples (http://www.bashcookbook.com/bashinfo/)
which also has a "bash Software Repositories and other Resources" list.-ewemoa (July 10, 2011, 02:48 AM)
As I've been looking into this topic, I find myself more attracted to learning about dash or the Bourne shell. ;)Well, to each his own, I guess... :P
Well, to each his own, I guess... :PWell, at least at first, it seems dash / Bourne shell might be smaller targets :)-Edvard (July 10, 2011, 03:38 AM)
I used to have a $9 "in a nutshell" book with many example sh scripts.. but I can't seem to find it to get the exact title.Don't know if it was UNIX in a Nutshell (http://www.amazon.com/Unix-Nutshell-Fourth-Arnold-Robbins/dp/0596100299), but the author of that seems to have co-written a separate book on shell scripting:-MilesAhead (July 04, 2011, 11:42 PM)
The Bash Debugger Project is a source-code debugger for bash that follows the gdb command syntax.
My other favorite scripting resource is the most excellent Rob Van der Woude (http://www.robvanderwoude.com/) pagesThanks for this link. About to take a look :)-Edvard (July 15, 2011, 01:05 AM)
By the way, did you know that the command line
$ ls -bart -simpson -is -cool
is a valid usage for the SOLARIS ls command?