Date: Sun, 22 Feb 2004 10:01:29 -0600 (CST) From: David Fleck <david.fleck@mchsi.com> To: Julien Gabel <jpeg@thilelli.net> Cc: freebsd-questions@freebsd.org Subject: Re: seeking shell scripting resources Message-ID: <20040222095116.X58331@grond.sourballs.org> In-Reply-To: <49326.192.168.0.97.1077463973.squirrel@webmail.thilelli.net> References: <6.0.0.22.0.20040222091410.03a06988@pop.face2interface.com><4038C625.1000102@countrypure.net> <6.0.0.22.0.20040222102019.05afa958@pop.face2interface.com> <49326.192.168.0.97.1077463973.squirrel@webmail.thilelli.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 22 Feb 2004, Julien Gabel wrote: > Haven't found much around at all on shell programming and would like > to start learning it. Any more resources would be most welcome to find > out about. Shells differ in their programming constructs, so anything you learn in one shell may not be transferrable to others. As a personal preference, I usually try to write scripts for /bin/sh (for portability), unless I need a ksh or bash construct. bash is a variant of sh, with a lot of bells and whistles added, so techniques that work in bash *usually* work in sh (and ksh). With that preface, you might try http://www.tldp.org/LDP/abs/html/ as a start. It's bash-oriented, but a lot if it will apply to other shells (sh and ksh, not so much csh and tcsh) as well. And your system scripts are also an excellent place to learn by example. -- David Fleck david.fleck@mchsi.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040222095116.X58331>