Professional Documents
Culture Documents
F E1278 Pages: 2: Answer Any Two Full Questions, Each Carries 15 Marks
F E1278 Pages: 2: Answer Any Two Full Questions, Each Carries 15 Marks
PART B
Answer any two full questions, each carries 15 marks.
4 a) With example explain about (i) talk (ii) mesg (iii) finger (iv)telnet (v) rlogin ( 10)
b) Explain about command substitution with an example. ( 5)
5 a) Write the output of the following (i) ls -x chap? (ii) ls -x chap[0-2] (10)
(iii) ls -x chap0\[1-3\] (iv) echo ‘*?[1-6]’ (v) who | tee -a f.txt
Page 1 of 2
6 a) List any five commonly used signals and explain its usage. (5)
b) Explain the following (i) ps (ii)tr (iii)cut (iv) kill (v) nohup (5)
c) Explain any two filters? (5)
PART C
Answer any two full questions, each carries20 marks.
7 a) Shell script program for menu driven calculator with the following functions. (10)
(i) Addition (ii) Subtraction (iii) Multiplication (iv) Division (v) Modulus
b) Write an awk program to print the 1st and 3rd field of a file where the last field (5)
should contain some numerical data which is greater than 10000.
c) Write the output for the following (5)
i. $sed -e ’ s/Linux/Unix/g’ myfile
ii. $grep -c output$ myfile
iii. $grep output myfile | wc -l
8 a) Write an awk program to list and count the no. of employees whose monthly (10)
salary greater than 60000, and find out average salary of them. Assume that
there is a file which consists of empID, empName and monthly salary field
separated with “,”
b) Explain about the application of eval and exec statements. (5)
c) With suitable example explain about sleep and wait command. (5)
9 a) Write a shell script to accept student name register number and marks of four (10)
subjects of 10 students. Find the total mark and grade of each student.
b) Explain about line addressing in sed (5)
c) Explain about grep command (5)
****
Page 2 of 2