0% found this document useful (0 votes)
2 views1 page

Lab Practical - Linux and Shell Programming

The document outlines a series of lab practical exercises for BCA students focusing on Linux and Shell Programming. It includes tasks such as writing shell scripts to find prime numbers, compare data files, check for palindromes, count vowels, and perform pattern matching. The exercises aim to enhance students' practical skills in scripting and command-line operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Lab Practical - Linux and Shell Programming

The document outlines a series of lab practical exercises for BCA students focusing on Linux and Shell Programming. It includes tasks such as writing shell scripts to find prime numbers, compare data files, check for palindromes, count vowels, and perform pattern matching. The exercises aim to enhance students' practical skills in scripting and command-line operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Lab Practical I – BCA (II -Sem)

Linux and Shell Programming

1. Write a shell script to print all the prime numbers between M to N (M<N).
2. Write a Shell script to create two data files and compare them to display unique and
common entries.

1. Write a shell script to reverse a given number and check whether it is a palindrome.
2. Write a shell script to count the number of vowels in a string.

1. Write a shell script to implement 10 Linux commands using case.


2. Write a Shell script to create two data files and compare them to display unique and
common entries.

1. Write a Shell script that displays a list of all the files in the current directory to which the
user has read, write and execute permissions?
2. Write a shell script to accept a word and perform pattern matching in a given file.

1. Write a shell script to copy a file within the current directory


2. Write a shell script to find the factorial of a number

1. Write a Shell script to create two data files and compare them to display unique and
common entries.
2. Write a shell script to accept a word and perform pattern matching in a given file.

1. Write a shell script to count the number of vowels in a string.


2. Write a shell script to convert uppercase characters to lowercase and vice versa.

1. Write a shell script to accept a word and perform pattern matching in a given file.
2. Write a shell script to print all the prime numbers between M to N (M<N).

1. Write a shell script to find the factorial of a number


2. Write a shell script to count the number of vowels in a string.

You might also like