linux Tutorials

21. Sort numbers using arrays in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script demonstrates the use of arrays with a script that sorts 5 numbers and prints the sorted numbers.


22. Command line arguments in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script shows how to accept command line arguments in shell scripts. In this example it accepts two numbers and adds them.


23. Command line arguments to calculate average in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script shows how to accept command line arguments in shell scripts. In this example it accepts two numbers and calculates their average.


24. Find the biggest number in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script shows how to find the biggest number from three given numbers. The algorithm is as follows:


25. getopts tutorial in Shell Script

By: Vivek G : 2011-01-29

Description: This 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.


26. Calculator tutorial in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script shows a simple calculator application.


27. Decimal to hexadecimal converter in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script converts decimal to hexadecimal.


28. Finding factorial in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script demonstrates finding the factorial of a given number.


29. Check if file exists in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script demonstrates to check if the given file exists or not.


30. Formating text in Shell Script

By: Vivek G : 2011-01-29

Description: This shell script demonstrates how to display text in different colors, blinking text, bold text etc.