Tuesday 3 January 2017


 UNIX PROGRAMMING 



Assignment-1(UNIT-1)
SET-1
1. Explain about the features of UNIX.
2. Explain the following commands with suitable examples.
Umask, chmod, mkdir, rmdir, sort, cp
SET-2
1. Explain in detail about file permissions and process utilities.
2. Explain in detail about backup utilities.
SET-3
1. Explain in detail about disk utilities and text processing utilities.
2. Explain in detail about UNIX file system with neat diagram.


Assignment-2(UNIT-2)
SET-1
1. Write a shell program for file contains records. Each record containing name and city, name of state and name of country. How would you sort this file with country as the primary key and state the secondary sort key.
2. Write a shell script which counts the number of lines and words present in a given file.
3. Write a shell script that copies multiple files to a directory.
4. Implement a shell script to show that the given number is even or odd?
SET-2
1. Write a shell script which displays the list of all files in the given directory.
2. Write a shell script (small calculator) that adds, subtracts, multiplies and divides the given two integers. There are two division options: one returns the quotient and the other returns reminder. The script requires 3 arguments: The operation to be used and two integer numbers. The options are add
 (-a), subtract(-s), multiply(-m), quotient(-c) and reminder(-r).
3. Write a shell script to reverse the rows and columns of a matrix.
4. Write a shell script to show the given strings and numbers are equal or not?

No comments:

Post a Comment