LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2009, 12:08 AM   #1
Alex_Dc
Member
 
Registered: Oct 2009
Posts: 104

Rep: Reputation: 22
Are there any Bash scripting guides that don't suck?


Seriously. I've been looking for almost a month now, and I keep seem to find a guide that provides ANY practical information about scripting with Bash.

Simply, I am for a guide (or even just a reference would be fine) to the Bash language. There are plenty of guides out there that will explain how to write a good script, or what goes on within Bash when X type program executes, but I just want to know what the hell "if [ -z "$myvar" ]" or "if [ -d /sys ]" means.
 
Old 11-11-2009, 12:12 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
search google for "Advanced Bash Scripting" , or just see my sig
 
Old 11-11-2009, 12:25 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Advanced Bash Scripting Guide
 
Old 11-11-2009, 12:30 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
See also
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
 
Old 11-11-2009, 12:44 AM   #5
Alex_Dc
Member
 
Registered: Oct 2009
Posts: 104

Original Poster
Rep: Reputation: 22
I wasn't such a big fan of the Advanced Bash Scripting guide, or the Beginner's guide. Both seem to present information rather erratically and include concepts in examples they haven't even taken the time to explain. The Rute book, I'll definitely take the time to check out. Also, ghostdog, I started reading through the Learn Bash link in your signature, and that seems rather useful.

Thank you for the quick responses, and any other suggestions will be greatly appreciated.
 
Old 11-11-2009, 05:29 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
The GNU Bash Reference has the best table-of-contents and is great as a reference rather than an introduction.

The Open Group Base Specifications' Shell Command Language is another complete reference but has no table-of-contents.


Greg's WIKI's Bash FAQ
has some well-thought out techniques, mostly suited to the intermediate or advanced user.
 
Old 11-11-2009, 08:08 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Your question is pretty basic. Open a terminal and enter "man test" ("[" is a synonym for "test")

The Bash Guide for Beginners (by Machtelt Garrels) is actually one of the best. Also look at Linux in a Nutshell from O'Reilly

ABS (IMHO) should used for searches after you already have some idea of what you are looking for.
 
Old 11-11-2009, 08:32 AM   #8
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Alex_Dc View Post
Seriously. I've been looking for almost a month now, and I keep seem to find a guide that provides ANY practical information about scripting with Bash.

Simply, I am for a guide (or even just a reference would be fine) to the Bash language. There are plenty of guides out there that will explain how to write a good script, or what goes on within Bash when X type program executes, but I just want to know what the hell "if [ -z "$myvar" ]" or "if [ -d /sys ]" means.
Hey Alex start from here
 
Old 11-11-2009, 08:43 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Look at the 'Linux General Help' section for Bash guides.

Just a few more links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
  


Reply


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
Reading a bash variable in bash scripting problem freeindy Programming 3 11-27-2008 03:29 AM
need help on bash scripting stympman Linux - Newbie 3 10-20-2008 07:20 PM
bash scripting stu_mueller Slackware 4 04-15-2008 03:09 PM
shell scripting guides? Grife Programming 4 03-21-2007 04:20 AM
new to bash scripting peok Programming 2 07-15-2006 03:46 AM


All times are GMT -5. The time now is 07:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration