Assignment Test-2 USP on 04-11-2018 (Monday Time Table on Sunday @ 12:15 to 1:15.......
1. Explain the different modes of vi editor with neat block diagram.
2. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
3. 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} .
4. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
5. Discuss Escaping and Quoting with examples.
6. What is grep command? Discuss with syntax, options, and examples.
7. Explain the test and [ ] with examples.
8. 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.
1. Explain the different modes of vi editor with neat block diagram.
2. Explain what wild-card patterns match:
1) [A-Z]????* 2) *[0-9]* 3) *[!0-9] 4) *.[!S][!h]
3. 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} .
4. Discuss the three standard files supported by Unix. (Standard I/O or Redirections)
5. Discuss Escaping and Quoting with examples.
6. What is grep command? Discuss with syntax, options, and examples.
7. Explain the test and [ ] with examples.
8. 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:
Post a Comment