UNIX Assignment Day7

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

UNIX Assignment

UNIX Hands-on and Assignments Day 7


1. Write a shell script to compare two files passed to it as command line arguments. Use a shell function or functions to perform standard checks on the files before comparing them. Also perform appropriate checks to ensure correct usage of the script. 2. Write a shell script to merge the contents of two files and display the merged contents on standard output. 3. Enhance the shell script that you wrote earlier to check for all duplicate files in the directory to overcome the limitation earlier that for a given pair of files, the check was being performed twice. 4. Write a shell script utilizing arrays to check for all duplicates within a directory for all directories under $HOME. 5. Modify the script in the question to accommodate the following options passed to the script from the command line Switch c d m Action Display cmp output for the two files Display diff output for the two files Display comm output for the two files

6. Write a shell script to display a data entry screen for address book maintenance. The database is of the form Full Name, Telephone number, Location. Use appropriate tput commands to display the screen. Implement add, change and delete functionality.

MLS/11/UX/OS/001

Melior Learning Solutions

Page 1

You might also like