How To Exam?

a knowledge trading engine...


Jaypee Institute of Information Technology (JIIT) 2007 B.Tech Information Technology unix - Question Paper

Tuesday, 02 April 2013 07:20Web

JAYPEE UNIVERSITY OF info TECHNOLOGY
Unix Operating System
TEST 2



1. How do you locate lines containing these patterns? (i) saxena or saksena (ii) rajiv, rajeev or Rajeev (iii) SIGSTOP or SIGTSTP.
2. Find out the name and designation of the youngest person in emp.lst who is not a director.
3. Add 2 spaces to the beginning of every line.
4. Invert the name of the individual in emp.lst so that the surname occurs first.
5. List the ordinary files in your current directory that are not user-writable.
6. Set a variable kount to store a count of the number of lines containing the word HTML in the files foo1, foo2 and foo3.
7. Use command substitution with grep to list the names of the persons from emp.lst who were born today.
8. How will you remove blank lines from a file using (i) grep and (ii) set?
9. Locate lines longer than 100 and smaller than 150 characters using (i) grep (ii) sed.
10. Find out the occurrences of 3 consecutive and identical word characters (like aaa or bbb) using (i) grep and (ii) sed.
11. Delete all the leading and trailing spaces in all lines of a file.
















( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jaypee Institute of Information Technology (JIIT) 2007 B.Tech Information Technology unix - Question Paper