Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Shell scripting books

Shell scripting books
Thread Tools
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jun 5, 2003, 10:42 AM
 
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
Reply With Quote
Jun 6, 2003, 11:05 AM
 
http://www.amazon.com/exec/obidos/AS...778844-2868643

I'm partial to it since my friend wrote it.
Now I know, and knowing is half the battle!
     
t_hah  (op)
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jun 13, 2003, 03:28 PM
 
Thanks...You can let your frined know that I ordered it.



t
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jun 14, 2003, 08:46 PM
 
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
Reply With Quote
Jun 14, 2003, 09:35 PM
 
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
Reply With Quote
Jun 15, 2003, 01:39 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:27 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2