1 of 4FIT 2065 Operating Systems and the UNIX EnvironmentAssignment 1 Due date:Week 7 – Submit the paper copy of the assignment to your tutor please.This assignment is worth:•The script should make...



1 of 4FIT 2065 Operating Systems and the UNIX EnvironmentAssignment 1 Due date:Week 7 – Submit the paper copy of the assignment to your tutor please.This assignment is worth:•The script should make backup copies of the user files from the current working directory that ismodified after the given date. 20% of your total Unit marks. The assignment is to develop a fully functional shell script (preferably in Bourne Shell Born Again syntax) that can perform backup operation on files in UNIX. Let us call the utility name as bu.sh(short hand name for backup utility). The specification and functionality for such a utility is as follows:Backup function:•The date is specified and passed as month and year as options to the bu.sh shell script command. There are three options and they are•–m option will specify the month in the format of mm (1

2 of 4Sample usage of the shell script bu.sh:Following are some of the possible ways (not exhaustive) by which the bu.shscript can be invoked and their interpretation.$ bu.sh –h Print a help message on how to use the bu.sh script. The help can be in the format of a man page too.$bu.sh-v -c -m 03 -y 2011Backup all the files that are modified after March 2011. As each file is backed up, the file name is displayed on the terminal and the end of the backup operation, the number of files being backed up is displayed.$bu.sh -m 02Backup files from the current directory of those files that are modified after February 2012 (the current year is the default year) $bu.sh -m 04 -y 2011 -d /home/srini/fit2065Backup files from /home/srini/fit2065 that are modified after April 2011.$bu.sh -m 04 –y 2011 –t 052010 Backup files that are modified after May 2010. Here I have taken the latest date as the date of backup operation. You need to make an assumption which date you will use. State this in your report.Note: that the above invocation of the script is correct, even though two dates are specified.$bu.sh –h –m 06 –y 2011 -d /home/srini/fit2065Sorry, you cannot specify options with –h as –h option will provide a help on how to invoke bu.sh script. It should also display the usage as follows:- $bu.sh [ -h] [-v] [-c] [-m mm] [-y yyyy] [-t mmyyyy] [-d dir]
May 12, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here