DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th August 2008
cwhitmore cwhitmore is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 0 Times in 0 Posts
Default Good Bash/Scripting book?

Can someone suggest a good scripting book? I've looked over the FreeBSD site, but couldn't find anything on scripting. A book with lots of examples would be nice.
Reply With Quote
  #2   (View Single Post)  
Old 13th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

http://tldp.org/LDP/abs/html/

That should cover everything you need for Bash and derivative shells. It's actually a textbook recommend for a course, available freely. There is a pdf version available for free. I've gotten through the first ten chappters, and it's very well written with tons of examples.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #3   (View Single Post)  
Old 14th August 2008
crayoxide crayoxide is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 46
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by ninjatux View Post
sweet. Thanks for the link.
Reply With Quote
  #4   (View Single Post)  
Old 13th August 2008
cwhitmore cwhitmore is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 0 Times in 0 Posts
Default

Exactly what I was looking for. Thanks!
Reply With Quote
  #5   (View Single Post)  
Old 14th August 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Also check Shell Scripting Primer from Apple:
http://developer.apple.com/documenta...section_1.html

You may also check this script for advanced script example:
http://toya.net.pl/~vermaden/text/vergallery.sh
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #6   (View Single Post)  
Old 14th August 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
Spam Deminer
 
Join Date: Apr 2008
Location: NYC
Posts: 322
Thanked 31 Times in 25 Posts
Default

I have a page with a few links, most of which I like better than the ldp ones.
http://home.nyc.rr.com/computertaiju...scripting.html

As for books, the Sams Teach Yourself Shell Scripting in 24 hours is not bad as well as the Unix Shell Programming (3rd edition--the 4th edition is by someone else and apparently not as good). The 3rd edition is here
http://www.amazon.com/Unix-Shell-Pro...8713405&sr=8-3
Reply With Quote
  #7   (View Single Post)  
Old 14th August 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,904
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by cwhitmore View Post
Can someone suggest a good scripting book?

You may find some value in another online tutorial:

http://steve-parker.org/sh/sh.shtml

Enjoy.
Reply With Quote
  #8   (View Single Post)  
Old 15th August 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,193
Thanked 182 Times in 149 Posts
Default

There is a review of a Bash Cookbook at Slashdot: http://books.slashdot.org/books/08/08/13/137246.shtml

I learnt a lot of my scripting by studying the FreeBSD and OpenBSD rc start up scripts.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Reply

Tags
bash

Thread Tools
Display Modes

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell scripting resources J65nko Programming 0 23rd December 2008 09:57 PM
Shell Scripting with BSD chavez243 Programming 9 3rd December 2008 03:03 AM
ports config and makefile scripting boincv FreeBSD Ports and Packages 6 1st October 2008 07:57 AM
Changing shell to bash rex FreeBSD General 13 29th August 2008 03:20 AM
Is bash included in OpenBSD? bsdnewbie999 OpenBSD General 21 2nd August 2008 02:57 AM


All times are GMT. The time now is 12:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick