About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Friday 5 October 2018

Assignment-II Unix and Shell Programming

1. Explain the different modes of vi editor with neat block diagram. Jan 2017
    Introduction to vi editor: 1m
    Block diagram: 2m
    Explanation of three modes with commands used: 2 x 3 =6m
    Total=9 m

2. Discuss the navigation commands used in vi editor. Jan-2017

3. Explain Shell's interpretive life cycle. Jan.2017

4. Explain what wild-card patterns match:
1) [A-Z]????*   2) *[0-9]*    3) *[!0-9]   4) *.[!S][!h]

5. Write the output of following Unix commands.
1) ls *.c   2) mv * ../ise   3) cp foo foo*   4) cp  ??????  progs   5) lp note[0-1] [0-9]
5) rm *.[!l][!0][!g]  6) cp  /home/cse/{A,B,C}  .

6. Discuss the three standard files supported by Unix.  (Standard I/O or Redirections)

7. Discuss Escaping and Quoting with examples.

8. Explain the following with examples.
pipe, tee and command substitution

9. Discuss the commands used for configuring vi editor. i.e. set, ab, map

10. What is .exrc ? Give example.

11. What is grep command? Dicuss with syntax, options, and examples.

12. What is egrep command? Give examples.

13. Discuss sed with line and context addressing techniques.

14. Write short note on BRE and ERE with examples.

15. What is shell programming?Give any three examples.

16. What is conditional execution in UNIX?Give examples.

17. Write all the forms of if statement supported by shell script with syntax and examples.

18. Write short note on "Command Line Arguments" with examples.

19. Explain the test and [ ] with examples.

20. Write shell scripts for the following.

A shell script to read pattern to be search and filename from the users from the terminal to apply grep command.

A shell script to read pattern and filename to apply grep command using command line arguments.

A shell script to display the following with appropriate messages.
Display system date.
Display user name of current user.
Display a list of users who are currently logged into the computer.
Display details of process in use.
Print current working directory.
Display shell in use.







No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...