Linux and UNIX Shell scripting eBook

Linux & unix shell scripting ebook
Linux & unix shell scripting

Linux and UNIX shell scripting made easy

This is the first time that I am realeasing an eBook on this site. It's the first edition of Linux and UNIX Shell Scripting Made easy eBook. This ebook is made for beginners.

For whom this eBook can be very useful?

1.Beginners who is not much aware of any programming language.
2.Programmers who wants to learn the basics of Shell scripting.
3.Linux Administrator who wants to build basic skills on Shell scripting.

You can download it absolutely Free from this site.

Linux and UNIX Shell scripting ebook
Download linux & unix shell scripting eBook

This book is made to give you a strong foundation in Shell scripting.    

Any Shell scripts starts with a line called Shebang “ #!/bin/your_shell_name/”. It indicates which interpreter will be used for executing the script.

There are various shells like Korn Shell (ksh), C Shell (csh), Remote Shell (rsh).

Bourne Shell (sh) and Bourne Again Shell (bash) are the most common shells. Other shells which are not so common but used in many machines are Microsoft Shell (msh), Z Shell (zsh), Almquist Shell (ash), Tenex C Shell (tcsh), Perl like Shell (psh).

Linux and Unix Shell scripting is used as a hidden script in inceptive stage in software development. Its most important features are  are easy to write codes than most other programs and debugging is very interactive.

As concept of all programming languages are somewhat similar So, not only this eBook can be used for learning UNIX shell scripting but can also be helpful for folks endeavouring to learn their basics of any programming language.

May be some of you have used batch files in Windows. Batch files contains list of instructions to be executed. It's a kind of script. Shell is more powerful than Batch. When you learn to use this programming language and starts to use shell scripts, two things happens, your command-line improves and regular handling of file management task becomes easy.
With Shell script you make many commands inside the script run in a sequence.

I have tried to make this eBook as simple as possible. Every chapter is explained with very easy examples and touched every key topics.

I have designed this e-book in the way I learned the basic concepts of programming. Although I came across many other programming or scripting languages like c, c++, java, php etc. But my concept was never vary clear until I met with shell.

When it comes to scripting language, I would also suggest you to learn about two of the most used scripting based features tools Sed and Awk. Find the tutorials here.

1.Sed command in UNIX and Linux examples-How to use
2.Awk command in UNIX and Linux with examples.
3.Sed tutorial for Linux administrator (Daily stream editing task)

My eBook contains 9 chapters with 36 pages. This ebook can be used as a quick reference handbook.

To download this free eBook and sign-up for our newsletter, enter you email address and click on Download eBook.

 

 

1. Shell Introduction

2. Write your first shell script

  • Your first Shell script

3. Shell Variables

  • What is UDV?
  • How to use read?

4. Shell Arrays

  • Method:1 Creating Arrays
  • Method:2 Creating Arrays

5. Shell Operators

  • Arithmetic operator
  • Relational operator
  • Boolean operator
  • String operator
  • File Test Operator

6. Shell Conditions

  • if condition
  • if else
  • Nested if else
  • Multilevel if else or elif

7. Shell Loops

  • For loop
  • Nested for loop
  • Concept of Printing (*) Pyramid
  • While loop

8. Case statements

  • Substitute of nested if

9. Shell script

  • File naming management
  • Encrypt a file or directory

 

I have given below the glimpse of contents of some chapters.

Chapter1:
Shell scripts are programs, which are run by Shell in Linux and UNIX like OS. Shell scripting can be used for many purposes like executing programs, manipulation of files, running a Cron task etc.

Like any other programming language shell programming has loops, conditions, case statement etc.

Chapter2:
When we write any shell script in Linux or UNIX like OS, it starts with shebang.

Shebang consists of Hash symbol with Exclamation mark (#!), followed by full path to the interpreter.

The two most common shebang lines are

1) #!/bin/sh with bourne shell path
2) #!/bin/bash with bourne-again shell path

Chapter5:
Example of operator for execute permission.

#!/bin/bash

file="~/file.txt"
if [ -x $file ]
then
echo "Have execute permission"
else
echo "No execute permission"
fi

To download this free eBook and sign-up for our newsletter, enter you email address and click on Download eBook.

 


Share your opinion how you liked my free eBook Linux and UNIX Shell scripting eBook Made easy?
Your feedback weather Good or Bad motivates me write more and imrove.

Download Our Free eBook now

Linux and UNIX Shell scripting ebook

1 Comment on Linux and UNIX Shell scripting eBook

Leave a Reply

Your email address will not be published.


*


shares