| John L 2005-03-29, 2:49 am |
|
<prabhat143@gmail.com> wrote in message news:1111006237.394120.193560@f14g2000cwb.googlegroups.com...
> Hi,
>
> I want to learn how to write shell scripts. Can you pls recommend a
> "good book"? Definition of "good book" is the book with clear
> explanation and nice/reusable examples. I am familar with linux
> commands and I also know basic of writing linux scripts.
>
In very broad terms, there are two philosophies of shell-scripting.
Originally, most of the work was done by external programs with
the (Bourne) shell providing the plumbing -- pipes, redirection,
flow of control and so on. The best introduction to this might
still be the relevant chapters in Kernighan & Pike's The Unix
Programming Environment. This guide from Sun is brief but free:
http://developers.sun.com/solaris/a...korn_shell.html
More recently, as shells have become more powerful and expressive
(ksh, bash, zsh), there has been a tendency to do more of the work
in the shell itself rather than calling external programs.
Whether this is a good thing, I have my doubts.
Others have already listed resources.
There are a couple of promising-looking books in the pipeline;
that is, books that have been announced but not yet published.
O'Reilly has Classic Shell Scripting by Robbins & Beebe
http://www.oreilly.com/catalog/shellsrptg/
Apress has Shell Scripting Recipes by Chris FA Johnson
http://www.apress.com/book/bookDisplay.html?bID=419
I look forward to buying both.
Note that sometimes books are finally published under different
titles, later than planned or not at all.
--
John.
|