Task4- Create a script to copy a file or directory (20 pts) • Input the source file/directory as the first argument and
Posted: Sun May 15, 2022 7:54 am
Task4- Create a script to copy a file or directory (20 pts) • Input the source file/directory as the first argument and the destination file/directory as the second argument. • If the user doesn't input two arguments, print the error message. . If the destination file/directory exists, ask the user whether the user wants to override. • If yes, try to copy the file/directory, and display message to let user know whether the copy is successful or not . if no, exit the script with status 1. . If the destination file/directory doesn't exist, try to copy the file/directory, and display message to let user know whether the copy is successful or not