Calculator tutorial in Shell Script
This shell script shows a simple calculator application.
Read tutorialTHE TUTORIAL LIBRARY
This shell script shows a simple calculator application.
Read tutorialThis shell script shows how to use getopts in shell script to get command line options in your own shell scripts. In this example, the following options are programmed.
Read tutorialThis shell script shows how to find the biggest number from three given numbers. The algorithm is as follows:
Read tutorialThis shell script shows how to accept command line arguments in shell scripts. In this example it accepts two numbers and calculates their average.
Read tutorialThis shell script shows how to accept command line arguments in shell scripts. In this example it accepts two numbers and adds them.
Read tutorialThis shell script demonstrates the use of arrays with a script that sorts 5 numbers and prints the sorted numbers.
Read tutorialThis shell script accepts a year and checks if the entered year is leap year or not.
Read tutorialThis shell script shows to print any one of the following message in infobox using dialog utility, if installed in your system, If dialog utility is not installed then use echo sta
Read tutorialThis shell script prints contents of file from given line number to next given number of lines. For e.g. If we called this script as printfile and run as $ printfile 5 5 myfile , H
Read tutorialThis shell script prints the given number's sum of all digits, For eg. If no is 123 it's sum of all digit will be 1+2+3 = 6.
Read tutorialWhile programming shell sometimes you need to find the errors (bugs) in shell script and correct the errors (remove errors - debug). For this purpose you can use -v and -x option w
Read tutorialThe case statement is good alternative to Multilevel if-then-else-fi statement. It enable you to match several values against one variable. Its easier to read and write.
Read tutorialOne example today. A better developer tomorrow.