Krishnarajapura village, Shivakote post, Bangalore-89
(NAAC Accredited)
24BCA21P-LINUX AND SHELL PROGRAMMING LAB
PART-A
1. Write a shell script to print all the prime numbers between M to N (M<N).
2. Write a shell script to copy a file within current directory.
3. Write a shell script to count the number of vowels in a string.
4. Write a shell script to find factorial of a number
5. Write a shell script to find the sum of digits of a given number using loops.
6. Write a Shell script that displays list of all the files in the current directory to
which the user has read, write and execute permissions?
PART-B
1. Write a shell script to reverse a given number and check whether it is a
palindrome.
2. Write a shell script to find the sum of digits of a given number without using
loops.
3. Write a shell script to convert uppercase characters to lowercase and vice versa.
4. Write a shell script to accept a word and perform pattern matching in a given
file.
5. Write a shell script to implement 10 Linux commands using case.
6. Write a Shell script to create two data files and compare them to display unique
and common entries.