Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7. Homework Your task is to create a bash shell script that is able to backup all the C++ program files in your current directory,

image text in transcribed
7. Homework Your task is to create a bash shell script that is able to backup all the C++ 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, 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 I 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 7. Homework Your task is to create a bash shell script that is able to backup all the C++ 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, 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 I 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions