LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-21-2006, 10:08 AM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
A book/Online reference for shell scripting


i need your help guys to find an online or a book beginers referenece for shell linux/unix scripting. i think that learning how to script is a big part of linux administration and i would like to lear how to do it properly.thansk a lot.
 
Old 02-21-2006, 10:48 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Advanced Bash-Scripting Guide

Bash Guide for Beginners

http://www.tldp.org/guides.html
 
Old 02-21-2006, 10:49 AM   #3
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Some things you might be interested in getting started.
http://www.gnu.org/software/bash/manual/bashref.html
http://www.dsl.org/cookbook/cookbook_toc.html
 
Old 02-21-2006, 10:55 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,027
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
The main shell in Linux is bash so presumably you mainly want to learn bash shell scripting.

At its simplest scripting is just taking the lines you run at a command line and putting them into a file then adding the execute bit to the file with chmod. Of course for more complicated scripting you need more but just being able to do that will save you a lot of time.

Anyway doing a google for:
Quote:
Linux bash "scripting tutorial"
I got several hits the first of which was:
http://www.tldp.org/LDP/abs/html/

Going through a few of its sections it seems it may be a good tutorial. (Don't let the title of "Advanced" throw you off. It starts with Basics.)
 
Old 02-21-2006, 11:25 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
http://www.linuxcommand.org/learning_the_shell.php
 
Old 02-21-2006, 02:10 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
You've already got all the free online links that I would have given.

Also consider an O'Reilly book called "Classic shell scripting"--or something like that. Will be in any decent-sized bookstore---or Amazon.
 
Old 02-22-2006, 11:58 PM   #7
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
Thanks a lot ....

those links where really helpful , i read some of it and it looks for me that the idea is simple but the implementations and the posibilities are endless ... i guess that's something very important to work on .... need a lot of hours to get familiar with.... thanks a lot ...
 
Old 02-24-2006, 03:34 PM   #8
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Rep: Reputation: 15
http://linuxcommand.org/writing_shell_scripts.php

That one helped me out a lot, shows some purposes for writing the scripts and a step by step process of doing so. Keep working at it, it eventually clicks and then it is second nature.
 
Old 03-08-2006, 01:19 PM   #9
crouse
LQ Newbie
 
Registered: May 2005
Location: USA
Posts: 19

Rep: Reputation: 0
http://www.bashscripts.org/docs/
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell scripting book? newbie9500 Linux - Newbie 3 10-24-2005 01:14 AM
Good Reference Book? LinuxConvert-06/05 Linux - Newbie 4 07-02-2005 11:19 PM
Best linux reference book? flamesrock Linux - Software 2 03-13-2004 05:58 PM
looking for good reference book for QT Tafta Programming 1 12-05-2003 05:55 PM
Is there a good reference book? koyi Linux - Newbie 9 07-31-2003 11:06 PM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration