Looping in shell Scripts are there to you. You Can use four types of loops.
1. while-do loops
2. for loops
3. until loops
4. select loops.
I will give you examples for all four types of loops.
Microcontrollers - Sinhala Tutorial Series
You Can download Free Micro Controllers Tutorial Series by click on Following Download Line. These tutorials are published on Vidusara Science Magazine.
Click Here To Download Tutorials.
Do Not Remember to Leave a Comment or Follow Us to get Future Tutorials.
Click Here To Download Tutorials.
Do Not Remember to Leave a Comment or Follow Us to get Future Tutorials.
Sinhala Dictionary for Linux
There are few more dictionaries for Windows. So I am not going to explain about installing dictionaries on windows operating system. You can install Madura dictionary on windows. It is a good dictionary for Windows users. Dear Linux Users, You Have stardict ...!
Now I am going to tell you how to install Stardict on Linux.
Step1
Use following command to install stardict on your system.
Ubuntu users.
apt-get install stardict
Other Linux users can download and install stardict. Click This link to download Stardic from stardict website. Install stardict on your linux system.
Step2
Download Dictionary files. Click here to download dictionary files. Go to the /usr/share/stardict/dic directory and untar your dictionary file to above directory.
Use Following command to untar dictionary files.
tar -xzvf sinhala-stardict-120908.tar.gz
Step3
Now you can go to Accessories and open your stardict.
Now I am going to tell you how to install Stardict on Linux.
Step1
Use following command to install stardict on your system.
Ubuntu users.
apt-get install stardict
Other Linux users can download and install stardict. Click This link to download Stardic from stardict website. Install stardict on your linux system.
Step2
Download Dictionary files. Click here to download dictionary files. Go to the /usr/share/stardict/dic directory and untar your dictionary file to above directory.
Use Following command to untar dictionary files.
tar -xzvf sinhala-stardict-120908.tar.gz
Step3
Now you can go to Accessories and open your stardict.
Resolve Merge Conflicts in github
In This tutorial, I am going to explain how to resolve merge conflicts in github. Let's how merge conflicts are come to the picture. Let say you and your friend working with a two different branches named as Branch_A and Branch_B
You working with Branch_A and your friend working on Branch_B. Your Friend working on Branch_B and merged his changes to master branch. You still work on your own Branch_A. You do not know your friend committed his change to master branch. you are in one step back from the master branch.
You working with Branch_A and your friend working on Branch_B. Your Friend working on Branch_B and merged his changes to master branch. You still work on your own Branch_A. You do not know your friend committed his change to master branch. you are in one step back from the master branch.
Shell Scripting Lesson 7 - If else Statement
As you know if else statements are used as control statements. When you make decision based on a value of variable, you should use if else statement. If else statements are fundamental control statements.
In shell Scripting, Basic if statements should be written as follows.
if Statements are starting from if keyword and ends with fi keyword. See below Example.
In shell Scripting, Basic if statements should be written as follows.
if [ expression ] then Execution steps, if condition is true fi
if Statements are starting from if keyword and ends with fi keyword. See below Example.
num1=5 num2=10 if [ $num1 == $num2 ] then echo "I am inside the if block" fi
Basic Git tutorial
You have created and Committed your first file to github in my first git Tutorial. If anyone can not read my first tutorial, Click here to read it.
In This tutorial, I am going to teach you some basic git commands.
In This tutorial, I am going to teach you some basic git commands.
Update Database With Selected Data in mySql
I have to work with some mysql query to update some field in a mysql table. I have two tables. First one is 'Table_A' and other one is "Table_B". What I had to do is update 'customer_package_id' filed in "Table_A" Table according to their customer id (cus_id).
How To Create git Repository in github
Github is a popular online version control System. Most of IT Persons are using github to maintain their software versions. We can easily manage our software version with github version controlling System. We Can Manage Several Branches of our Software.
In This Tutorial I am going to Show you How to be familiar with github version Control System. First of All, You need to Create Account in www.github.com. Then You can Create github Repository.
In This Tutorial I am going to Show you How to be familiar with github version Control System. First of All, You need to Create Account in www.github.com. Then You can Create github Repository.
How to Run php Codes in Commandline
In this tutorial i am going to show you how to run your php scripts in windows or Linux commandline. First of All, You need to install php5-cli extension. Use phpinfo() function to check installed php extensions.
In Linux System, you can use following Command to install php5-cli.
open a notepad or your favorite Text Editing tool.Copy and pasete below php code snippet inside your notepad. Save it with .php extension.
open command prompt.
In Linux System, you can use following Command to install php5-cli.
sudo apt-get install php5-cliIf you already installed php5-cli you are eligible to run php codes in commandline.
open a notepad or your favorite Text Editing tool.Copy and pasete below php code snippet inside your notepad. Save it with .php extension.
<?php echo "Hello Word !\n"; echo "php Commandline Tutorial\n"; ?>
open command prompt.
Shell Scripting Lesson 6 - Working With Arrays
You Can define Arrays in Shell Scripting. In this tutorial, I am going to describe how to use arrays in Shell Scripting. Using Arrays are useful for store several Numbers,Integers etc.
Declaring Array
See Below Example.
Declaring Array
array_name[index]=value
See Below Example.
Shell Scripting Lesson 5 - Working With Numbers
In this tutorial I am going to explain how to work with numbers in shell scripting. Sometimes we have to do simple mathematical operations with Number.
In Shell Scripting, Mathematical Calculations can be done by using expr Command. See the Example below.
Example
If you print output of a Mathematical Calculation, Use ` (tilde ~) Key before and after the Mathematical Expression. See the Example Below.
Example
That's All For Today !
In Shell Scripting, Mathematical Calculations can be done by using expr Command. See the Example below.
$expr operand1 mathematical_operation operand2
Example
$ expr 3 + 2 $ expr 10 - 2 $ expr 9%2 $ expr 10 \* 3 #multiplication of 10 and 3
If you print output of a Mathematical Calculation, Use ` (tilde ~) Key before and after the Mathematical Expression. See the Example Below.
Example
$ echo `expr 6 + 3`
That's All For Today !
Shell Scripting Lesson 4 - Variables
Variables are used to keep some information in RAM.There are tow types of Variables in Linux System.
System Variables - These variables are created and maintained by Linux System. Following Variables are Commonly used in our Shell Programming.
Ex :
BASH=/bin/bash - Shell Name
HOME=/home/etutionlk - Home directory
PWD=/home/etutionlk/shell - Current Working Directory
PATH=/sbin:/bin:/usr/sbin:/usr/java/jdk/bin - Path Settings are stored.
There are few more variables other than above variables. These variables are defined in CAPITAL LETTERS.
System Variables - These variables are created and maintained by Linux System. Following Variables are Commonly used in our Shell Programming.
Ex :
BASH=/bin/bash - Shell Name
HOME=/home/etutionlk - Home directory
PWD=/home/etutionlk/shell - Current Working Directory
PATH=/sbin:/bin:/usr/sbin:/usr/java/jdk/bin - Path Settings are stored.
There are few more variables other than above variables. These variables are defined in CAPITAL LETTERS.
Shell Scripting Lesson 3 - Write your First Shell Script
This is My third shell scripting tutorial. In this tutorial, I am going to teach you how to write your very first shell Script. Simply says that Hello World shell script !
For this tutorial, I am using vim editor as my text editing tool.
Open a terminal of your Linux distribution. Type following command to create shell file.
For this tutorial, I am using vim editor as my text editing tool.
Open a terminal of your Linux distribution. Type following command to create shell file.
$ vim myfirst.shType following code snippet in it.
#!/bin/bash # My first script echo "Hello World!"
Shell Scripting Lesson 2 - Basic Commands about Vim Editor
I have posted my first post about Shell Scripting tutorial Series. It is about Basic Shell Commands where we want to use throughout this course. Now I am going to teach you about Some basic vim commands.
This Commands are very useful. Because I am going to use vim editor as my default Shell Script Editing Tool.
OK...That's Enough ! Let's Turn to Our Tutorial..... !
This Commands are very useful. Because I am going to use vim editor as my default Shell Script Editing Tool.
OK...That's Enough ! Let's Turn to Our Tutorial..... !
Shell Scripting Lesson 1 - Basic Shell Commands
Shell scripts contain with series of shell commands. shell scripts are used to get user inputs from users. Mostly shell Scripts are used to gather system information and automate tasks in day today life.
In this set of tutorials, I am going to teach you shell scripting from A to Z.
Before Start the shell scripting tutorial course, we should know some useful basic shell commands because these commands are mostly uses in this course.
I have mentioned Some basic shell commands below. Follow these shell commands before the course.
In this set of tutorials, I am going to teach you shell scripting from A to Z.
Before Start the shell scripting tutorial course, we should know some useful basic shell commands because these commands are mostly uses in this course.
I have mentioned Some basic shell commands below. Follow these shell commands before the course.
How to change 'Subscribe to' Text from blogspot blog
This tutorial teaches you how to add custom message to "Subscribe to" Text in blogspot blog.Before All of them, Have a backup your blog template.
Follow following steps..
Step 1
Go to the Layout > Edit Html page in your blogger dashboard. After that, Search following Text in your blogger Template.
Note : Use Search function of blogger.
Follow following steps..
Step 1
Go to the Layout > Edit Html page in your blogger dashboard. After that, Search following Text in your blogger Template.
<data:feedLinksMsg/>
Note : Use Search function of blogger.
Syntax Highlighing For blogger post
Now, I am going to teach you how to add syntax facility to your blog post in blogspot. you can add this to your own website also. This is very useful to identify code snippets from thousands of text lines and it add some beautification to your website.
As usual, I have divided this tutorials into small steps.
Then, Add following Code line after the </head> in blogger template.
As usual, I have divided this tutorials into small steps.
Step 1
First of All, Backup your Blogger Template !! It is very useful to Restoration of your blog, if you have done some wrong thing to your blogger template.Then, Add following Code line after the </head> in blogger template.
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"> </script>
How to remove index.php file from URL in Codeigniter
Hello, This is my first post after the Hello World Post. Today I am going to teach you how to remove index.php file from URL in Codeignitor. When you redirect to your view in Codeignitor, you have to insert index.php file also. Show the below Example,
This is a headache to me. So I wanted to remove Index.php file from URL and make my site URL beautiful. Like This,
OK. Let's do it Step by step.
http://www.yourServer.com/index.php/controller/function
This is a headache to me. So I wanted to remove Index.php file from URL and make my site URL beautiful. Like This,
http://example.com/controller/function
OK. Let's do it Step by step.
Hello Tutorial Lovers
Hello,
This is our website for Learning through Tutorials. Here We will publish tutorials for all subjects. If you like to be a premium tutor of this website, send us an Email for below Email address. Our Email Address is,
Thank You,
---E Tution Team --
This is our website for Learning through Tutorials. Here We will publish tutorials for all subjects. If you like to be a premium tutor of this website, send us an Email for below Email address. Our Email Address is,
etutionlk@gmail.com
Thank You,
---E Tution Team --