1753781 Members
7363 Online
108799 Solutions
New Discussion юеВ

Shell Scripting

 
SOLVED
Go to solution
scripting
Occasional Contributor

Shell Scripting

Hi Everyone,

I am new for the ares of Shell scripting..
Can any one can tell me the link or docs for learning the same from basic.

Thanks in Advance
Madhan.S
6 REPLIES 6
P Muralidhar Kini
Honored Contributor

Re: Shell Scripting

Hi Madhan,

http://docs.hp.com/en/B2355-90046/ch04s01.html
->HP-UX - Introduction to Shell Scripts
Also there is a link in the page which allows you to download the
entrire content in a PDF file.

http://box.mmm.ucar.edu/computing/doc/guide/ch_2.html
->UNIX - CHAPTER 2: UNIX SHELLS

Regards,
Murali
Let There Be Rock - AC/DC
Raj D.
Honored Contributor
Solution

Re: Shell Scripting

Madhan,

Go through this document with hp-ux,
And that is how you can learn faster,

http://docs.hp.com/en/B2355-90046/B2355-90046.pdf

Book: B2355-90046-Shells User's Guide HP 9000 Computers




- Also a great book: Mastering UNIX Shell Scripting :
http://www.amazon.com/Mastering-Shell-Scripting-Randal-Michael/dp/0471218219


In short you need to learn few thing and put your hands into it:


- Sample program. (write a 5 line script)
Like:

# vi script1.sh

#!/usr/bin/sh
echo "Hello World!"
echo "This is my first shell script"
echo "---------------"
echo "Today's it is : `date` "
#---------------------

- Control Flow.
- Operators.
- Assignment Operators, Logical Operators.
- Looping.
- if then else fi / for do done / case esac / while do done / while /until /
- test operators.
- function.
- formating.
- shell maths.

Also to go advance once you are happy with shell it would be interesting to go with sed and awk along with it.


Chek this out:
- Sed an introduction and Tutorial.
http://www.grymoire.com/Unix/Sed.html

- Also here you can start with awk:
http://www.grymoire.com/Unix/Awk.html



Finally keep hanging around ITRC forum and keep asking question, you will learn many things you don't know right now, this is a great forum, and remember to assign points to all your questions to those who spend their times to answer you.

HTH & Good Luck
Raj,
" If u think u can , If u think u cannot , - You are always Right . "
James R. Ferguson
Acclaimed Contributor

Re: Shell Scripting

Hi Madhan:

Heiner's SHELLdorado site has some good tutorials and a large number of scripts that will show you a number of techniques:

http://www.shelldorado.com/

Regards!

...JRF...
scripting
Occasional Contributor

Re: Shell Scripting

Thanks for all

With regards,
Madhan.s
scripting
Occasional Contributor

Re: Shell Scripting

Thanks for all those who were helped me get the e-books and all...