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
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
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 13th August 2008
cwhitmore cwhitmore is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Default

Exactly what I was looking for. Thanks!
Reply With Quote
  #4   (View Single Post)  
Old 14th August 2008
crayoxide crayoxide is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 46
Default

Quote:
Originally Posted by ninjatux View Post
sweet. Thanks for the link.
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,056
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
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
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: 3,318
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: 4,125
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
  #9   (View Single Post)  
Old 3rd December 2017
thedirtyvms's Avatar
thedirtyvms thedirtyvms is offline
.:VMS:.
 
Join Date: Nov 2017
Posts: 6
Default

I like look at this page while I'm searching for good books.

https://www.netbsd.org/docs/books.html

I'm reading this one: UNIX. Programming. Environment

But, really I recommend you this one

Mastering Unix Shell scripting

https://fisnikd.files.wordpress.com/...-scripting.pdf

Mastering Unix Shell scripting is a good book. Fully recommended
Reply With Quote
Old 3rd December 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

I know it's ksh not bash, but I really enjoyed this book:
https://www.amazon.com/KornShell-Pro.../dp/020156324X
Reply With Quote
Old 22nd December 2017
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

I also found the zsh user guide quite good, in spite of not being finished and not being updated in a while.

http://zsh.sourceforge.net/Guide/
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
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 07:13 AM.


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