Recommended reading to understand syntax


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Recommended reading to understand syntax
# 1  
Old 02-05-2009
Recommended reading to understand syntax

Do you have any recommendations for books to read or websites to visit that cover syntax information about when to use square brackets, brackets, braces, apostrophes, quotation marks etc. in a shell script. I have little troubling on the command line but it all goes to pot when I am coding shell scripts and using variables for file names etc.

Unix in a Nutshell is fine for commands but lousy for this kind of information.

Thanks,

Susan
# 2  
Old 02-05-2009
You could try Chris F. A. Johnson's book:
Shell Scripting Recipes:
A Problem-Solution Approach
Shell Scripting Recipes: A Problem-Solution Approach, by Chris F.A. Johnson

Or head over to O'Reilly and take a look at:
Classic Shell Scripting, 1st Edition
by Arnold Robbins; Nelson H.F. Beebe
Publisher: O'Reilly Media, Inc.
Pub Date: May 16, 2005
Print ISBN-10: 0-596-00595-4
Print ISBN-13: 978-0-596-00595-5
# 3  
Old 02-06-2009
Hi.

I second avronius' suggestions.

You could also make up a cheat sheet for yourself, perhaps from material in Advanced Bash-Scripting Guide

I often suggest the following as a useful book, particularly if you need more than one shell, etc. ... cheers, drl
Quote:
Title: UNIX(R) Shells by Example
Subtitle: ... guide to the C, Bourne, and Korn Shells plus Awk, Sed, and Grep
Author: Ellie Quigley
Edition: 4th
Date: 2004
Publisher: Prentice-Hall
ISBN: 013147572X
Pages: 1200
Categories: sh, csh, ksh, grep, sed, awk, scripting, shell, programming
Comments: 4.5 stars, 45 reviews Amazon (2007.07)
Comments: ( I have 2nd Ed, 1997 )
Comments: ( 4th edition includes bash and tcsh chapters )
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to understand special character for line reading in bash shell?

I am still learning shell scripting. Recently I see a function for read configuration. But some of special character make me confused. I checked online to find answer. It was not successful. I post the code here to consult with expert or guru to get better understanding on these special characters... (3 Replies)
Discussion started by: duke0001
3 Replies

2. Shell Programming and Scripting

Reading a file passed as an argurement and assessing the files syntax

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (8 Replies)
Discussion started by: Gurdza32
8 Replies

3. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies

4. Shell Programming and Scripting

Perl syntax that I don't understand.

I'm just trying to confirm that I understand someone's code correctly. If someone has code that says: $foo ||= mysub(); I'm assuming that it means if $foo is nothing or undef, then assign it some value via mysub(). If I'm wrong on this, please let me know. Also, what's the difference... (4 Replies)
Discussion started by: mrwatkin
4 Replies

5. Red Hat

Recommended Linux books

Hi All, What books do you recomend to have for quick reference in regarding to Linux administration and performance monitoring? Thanks for your insight. (2 Replies)
Discussion started by: Beginer0705
2 Replies

6. Red Hat

Red Hat Recommended reading?

Greetings, I tried seraching for a thread on this topic and couldn't find one, so no beating me up for posting this! I am a Solaris admin and i just got a new job where we have a few Red Hat Linux servers. There are many books out there and I am not ready to get certified. I am wondering... (2 Replies)
Discussion started by: BrewDudeBob
2 Replies

7. What is on Your Mind?

Any recommended reading for net+/server+

my school offers A+\Net+\Server+ which isn't the same as the official ones from compTIA but I feel its a good start anyways. I already have the A+ and am going for my net and server next year. So Im looking for any recommended reading etc. to better prepare myself because unlike the A+, I don't... (2 Replies)
Discussion started by: blowFish@ubuntu
2 Replies

8. Solaris

10 Recommended

Hi there I have two boxes with the following patch levels (uname -a) 5.10 Generic_118844-28 5.10 Generic_118855-15 Could somebody tell me what the dates are that are associated with these Solaris 10 relaeases ? and if I apply the current 10_Recommended what it will take this number to ??... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

9. UNIX for Dummies Questions & Answers

Unix recommended reading

Hello I was wondering if anyone had a Unix book recommendation. Just one book, that can give me a good foundation in Unix and has plenty of hands on exercises to follow along with on my Unix terminal? Thank you (1 Reply)
Discussion started by: vedder191
1 Replies
Login or Register to Ask a Question