Solved

Unix shell scripting tutorial

Posted on 2008-10-29
6
507 Views
Last Modified: 2013-12-26
Before I googling around, do you know any tutorial web site for Unix shell scripting? I am looking for having some hands-on. Thx
0
Comment
Question by:netdoc01
6 Comments
 
LVL 19

Accepted Solution

by:
jools earned 100 total points
ID: 22833258
Loads of resources;

Not many specific references to sh but most *nix's are usually linked to a posix or bash shell anyway and whilst there are differences you're not likely to get caught out too much.

http://www.freeos.com/guides/lsst/
http://ooblick.com/text/sh/
http://tldp.org/LDP/abs/html/
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 200 total points
ID: 22833479
0
 

Author Comment

by:netdoc01
ID: 22834456
Thanks for the links. It is certainly helpful and I will go through them.
I am new to Unix shell scripting and I see that there are a lot of technologies available for shell scripting. Which ones are the most common. Thanks
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 28

Assisted Solution

by:pepr
pepr earned 100 total points
ID: 22834960
You should know some of the shell dialects at least passively. However, it is not that difficult. On the other hand, I believe that--these days--it is more usefull to use one of some more general "scripting" languages. I would personally recommend you to learn Python (http://www.python.org/).

Python was designed as a practical and pragmatic language. It is considered to be very readable, easy to learn, suitable also for beginners. In my opinion, it has one of the most clean syntax and semantics of the like languages, including shell languages.

Python distribution contains also plenty of modules. Some of them (os, shutil) can be used easily for replacing the shell languages means and the unix-like one-purpose utilities -- having even similar names.

Python is available for all usually used OSes and the scripts/programs can be easily written in a portable way. Simple things can be written simply. Your short scripts may finally grow to full featured applications, including GUI.
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 200 total points
ID: 22841441
shell is the command interpreter. There are different shells on unix systems like

sh / ksh / bash and they from one family in the sense that sh is a subset of ksh, etc.

csh / tcsh

http://www.mcsr.olemiss.edu/unixhelp/shell/oview2.html
http://www.faqs.org/faqs/unix-faq/shell/shell-differences/
http://www.softlab.ntua.gr/facilities/documentation/unix/shelldiff.html
http://en.wikipedia.org/wiki/Unix_shell
 
0
 

Assisted Solution

by:nemoshudo
nemoshudo earned 100 total points
ID: 22897751
A beginner's handbook about programming shell:
http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to split this type of line? 5 93
bash while loop reading input from data section in script 7 69
Bulk Reorder File Names 4 67
Powershell File Sort 8 29
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question