Page 1 of 1

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
by answerhappygod
Task4 Create A Script To Copy A File Or Directory 20 Pts Input The Source File Directory As The First Argument And 1
Task4 Create A Script To Copy A File Or Directory 20 Pts Input The Source File Directory As The First Argument And 1 (21.91 KiB) Viewed 49 times
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