LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2004, 09:08 PM   #1
evangelinux
LQ Newbie
 
Registered: Mar 2004
Location: Charlotte, NC
Distribution: Debian, Ichthux, Ubuntu
Posts: 6

Rep: Reputation: 0
Question Where's the best place to learn Bash?



Other than 'man bash', can anyone recommend a good bash tutorial (doc, web site, or forums)? Preferably on-line stuff. I'll try to pick up a book at some point.

I understand one can create an interactive script, but the example I saw uses animals. As if one would actually write a script to get an animal from the user! Give me a real-world example of problems scripts like this solve.

If I'd be better off buying a book, just say so.

Regards,
Don
 
Old 06-13-2004, 09:50 PM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
http://www.tldp.org/LDP/abs/html/
 
Old 06-13-2004, 09:51 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Basically, all the syntax you need to be productive with shell scripts is pretty simple - everything you'd need to use for 90% of your scripting needs could easily boil down to a page or less.

The issue really isn't so much about "how to write shell scripts" as "how to use the power of shell scripts to solve real problems."

Furthermore, learning the shell really involves also familiarizing yourself with the Unix/Linux toolset - "awk", "sed", "tr", "sort", "cut", "uniq" and so forth.

Here are two book suggestions that would help you not only with "shell scripting", but with the bigger picture of "effectively using the *nix environment":

1) The Unix Programming Environment, Kernighan & Pike
A venerable classic from the early 80's ... and still, I believe, directly
applicable to your question

2) Linux Server Hacks, Rob Flickener
A treasure chest of great ideas and ready-made solutions

Hope that helps ... and definitely, have fun!

Your .. PSM
 
Old 06-13-2004, 10:25 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Bash Guide for Beginners
 
Old 06-13-2004, 11:25 PM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
http://www.ss64.com/bash/
 
Old 06-13-2004, 11:45 PM   #6
evangelinux
LQ Newbie
 
Registered: Mar 2004
Location: Charlotte, NC
Distribution: Debian, Ichthux, Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
This is helpful. Naturally, after I asked the question, then I found some useful links in the "Links" section of this site. Oops. Perhaps if some the Guides and tutorials used more of a problem-solving approach, it would be easier to see other instances how/where I might use a certain script.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good book to learn bash? J_K9 Linux - Newbie 14 11-26-2004 01:38 AM
What is the best book for a beginner to learn his way 'round BASH??? Fabyfakid Linux - Newbie 8 10-15-2004 11:04 PM
Suitable place to run bash scripts Skyline Programming 7 01-21-2004 07:37 PM
Definitive place to change bash settings in Slack? CodeWarrior Slackware 2 05-17-2003 08:04 AM
New to Linux. Learn bash or C first? kato678 Programming 4 02-20-2002 12:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration