Shell Programming Practical List
III Semester BSc Computer Science (CCSS-UG 2012 Admission), University of Calicut
1. Write a script to find the area of a circle
2. Write a shell script to check whether the given number is even or odd
3. Write a shell script to make a menu driven calculator using case
4. Write a shell script to find the largest among three numbers
5. Write a shell script to find the sum of all digits of a given number
6. Write a shell script to find the reverse of a number
7. Write a shell script to find prime numbers up to a given number
8. Write a shell script to check whether a given number is Armstrong or not
9. Write a shell script to check whether a given number is Perfect or not
10. Write a shell script to generate multiplication table of a given integer.
11.
Write a shell script to count no of lines, words and characters of an input
file
12.
Write a shell script to find the factorial of a given number
13. Write a shell script to Display Banner, calendar of a given year
14. Code for a program to display current date and time, number of users, terminal name, login date and time
15. Code for Shell script to perform operations
like display, list, make directory, copy, rename, delete etc.
16.
Write a shell script to accept student number, name and marks in 5 subjects.
Find total, average and grade.
Rules: Avg>=90 then grade A
Avg<90 && Avg>=80 then grade
B
Avg<80 && Avg>=60 then
grade C
Avg<60 && Avg>=40 then
grade D
Avg<40 then grade E