Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-13-2004, 09:08 PM   #1
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.

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

Rep: Reputation: 30
Old 06-13-2004, 09:51 PM   #3
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
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

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

Rep: Reputation: 48
Old 06-13-2004, 11:45 PM   #6
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Non-*NIX Forums > Programming

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

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