You are on page 1of 2

SHRI G.S.

INSTITUTE OF TECHNOLOGY & SCIENCE, INDORE
Department of Computer Technology & Applications
CT 2003: Operating System
Lab Assignment – III
{Duration: 3 Weeks}

1. Write a shell script to find sum of digits of a number.

2. Write a shell program to find the gcd for the 2 given
numbers

3. Write a shell script to print first 5 odd numbers.

6. Write a Shell Script to find out the sum of the given numbers
using command line argument.

4. Write a shell script to find the largest among the 3
given numbers

5. Write a shell script to find the average of the numbers entered in
command line

6. Write a shell script to find the smallest of three numbers.

7. Write a shell script to find the sum, the average and
the product of the four integers entered

8. Write a shell program to find the sum of the series sum=1+1/2+...
+1/n

9. Program of calculator which performs below operations
Addition
Subtract

count the lines and the words in a particular file. 12. which will receive any number of filenames as arguments . in Unix / Linux 13. Write a menu driven shell script for * Copy a file (user should specify source and target) * Remove a file * Move a file (take source and target) . Division Multiplication 10. Code for Write a shell script.The shell script should check whether such files already exist. Write a shell program to count the characters. Write a shell program to convert all the contents into the uppercase in a particular file. 11.