Question: I need help on this assignment please. I've tried numerous times but can't quite get the code right. can you please help so I can

 I need help on this assignment please. I've tried numerous times

I need help on this assignment please. I've tried numerous times but can't quite get the code right. can you please help so I can better understand what I'm doing wrong thank you.

7. Homework Your task is to create a bash shell script that is able to backup all the CH program files in your current directory. The algorithm is as follows: Prompt the user to enter a backup directory name. If the backup directory does not exist in the current directory, then create the backup directory, For each cpp file in the current directory, o If there have been changes to the file since the last backup or no copy exists in the backup directory, then copy the current.cpp file to the backup directory and print a message that the file has been backuped. Otherwise, no copy will be made, and print a message that the file is the latest. CSE 4600 Homework 1 Shell Programming Deliverables: 1. The code of bash shell script hwl.txt. The shell script file should be hwl.sh, but sh files can not uploaded to Blackboard, please revise the extension as .txt and then upload it to Blackboard, 2. The script log file hwilog.txt showing the test cases outlined below Test Cases captured in hwilog.txt : 1. Start by removing your backup directory (rm -- backup) 2. Ensure that there are some .cpp files in the current directory 3. Show the directory using Is-/ 4. Run the backup script file hwl.sh several times as specified below: Type "backup", to create a backup directory o ls -1 backup Run your backup script file hwl.sh . ls -1 backup Append to all the files and rerun your backup script file hwl.sh an good way to append is to type: echo "something" >> file.cpp Append to one file and rerun your backup script file hwl.sh Create a new .cpp file (using touch) and rerun your backup script file hwl.sh

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!