Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

PART A

EACH QUESTION CARRIES 5 MARKS


Question 1: Write regular expressions for
· A Set of strings including { d, abd, cd, abcd}
· A Set of Strings of x's, y's and z's
For example {xxx, xxy, xxz……….zzz}
Question 2: Write shell program for the following

To remove from an ordered array all numbers that occurs more than once.

Question 3: Write shell program for the following

To check whether a string is palindrome or not.

Question 4: Write shell program for the following

To sort the given list of numbers using bubble sort.

Question 5: What is the use of stat()?

PART B

EACH QUESTION CARRIES 5 MARKS

Question 1: What is difference between Process and a Job ?

Question 2: Write a shell script called bigfile which will change to your home
directory, search and list all your files which are stored in the directory from the
biggest to the smallest in size and displays the output in 8 columns on 78-character
wide lines.

Question 3: Write a shell script, using the more command, and a pipe command to
send the contents of your .profile and .shrc files to display them on the screen.

Question 4: Write a shell program to convert a decimal number to its binary


equivalent.

Question 5: Write a shell program to find the validity of a given date.

You might also like