Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have the Orielly's "Learning bash". I also refer to Advanced Bash-Scripting Guide(tldp.org/LDP/abs ).

Any other good books on the subject ?

share

locked by HopelessN00b Jan 12 at 16:49

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Jan 12 at 16:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
Duplicate: serverfault.com/questions/92180/… –  Dennis Williamson Jan 24 '10 at 6:00
1  
wow, if those two resources don't answer your shell scripting question, I'm not sure I even want to know what you're trying to do –  Greeblesnort Jan 26 '10 at 19:21

4 Answers 4

up vote 3 down vote accepted

Learning the Bash Shell along with Classic Shell Scripting, followed by Bash Cookbook.

I would suggest charging through the first two books, without worrying too much about remembering it all. Reference them as you want to do something that you remember reading about but don't recall how to actually do. And come back to them a few a months later and learn new things from them.

Note, this is coming from the perspective of a linux admin, so I lean toward the niceties of bash over the more pure sh. It is only the rare script that I bother to actually make sh compatible. Also, I don't consider tcsh to be a legitimate scripting language.

share

Not a book, but a must have.

Keep BashPitfalls under your pillow because it'll teach you how you should NOT code in bash.

share

When you say "shell scripting" it appears you mean bash scripting?

If you mean "shell" are you worried about writing portable shell code?

share
    
This isn't an answer; you should have put your questions in the comments. –  gareth_bowles Jan 26 '10 at 19:55
    
I don' think I can apply comments yet? –  Derek Schrock Jan 28 '10 at 14:49

I prefer "The Korn Shell" book by Anatole Olozak. Korn shell and Posix shell are almost identical. This is very handy for writing portable shell scripts. The books serves as both a good tutorial and long(er) term reference.

+1 to all the suggestions about BashPitfalls, and the various Shell Cookbooks.

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.