 |
 |
Shell scripting books
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status:
Offline
|
|
I need to learn shell scripting really quickly, I do not need to be an expert with it, but I need to be decent at it.
I am trying to purchase a book that teaches shell scripting (Korn, C...), but I cannot seem to find the right one. I really like the idea of going through examples and such. I also love the Visual Quickstart books...so something along those lines would be awsome.
What do you guys recommend?
Thank you,
t
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jan 2002
Location: Bay Area, CA
Status:
Offline
|
|
|
|
|
Now I know, and knowing is half the battle!
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status:
Offline
|
|
Thanks...You can let your frined know that I ordered it.
t
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
There is also a book from O'Reilly named Using csh & tcsh that is great. There are different shells and getting instruction in the shell you are using is a must. Mac OS X uses the tcsh shell. BSD unix is different from Linux which is different from other *nixes, so be careful. Many of the books on shell scripting are written for the Korn (ksh) shell and the Bourne shell. Tcsh is an enhanced version of the Berkeley Unix C shell (csh).
Which shell is best borders on a religious discussion. Opinions are strong and expressed freely. We have tcsh in OS X and it is the one to learn how to script while in that operating environment.
HTH
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by suthercd:
Which shell is best borders on a religious discussion. Opinions are strong and expressed freely. We have tcsh in OS X and it is the one to learn how to script while in that operating environment.
Fo a user shell, this is very true. But for writing shell scripts, using a bourne-compatible shell is crucial. csh and tcsh have lots of problems when you try to write complex scripts. Read this:
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
Within the Bourne shells (sh, zsh, ksh, bash), you can debate all you like, since they are generally compatible with one another from the programming perspective. I generally use a fancy shell like bash for my user stuff, and straight sh (#!/bin/sh) for shell scripts.
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2001
Location: San Jose CA
Status:
Offline
|
|
Originally posted by t_hah:
Thanks...You can let your frined know that I ordered it.
Hi,
Did you order the 2nd Edition?
The 2nd Edition contains updates that cover OS X 10.1.x (10.2.x wasn't out when I was working on the 2nd Edition).
A tar.gz that contains most of the examples is available at:
http://www.csua.berkeley.edu/~ranga/...s/tysp2.tar.gz
I hope you find the book useful.
--ranga
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|