Task4- Create a script to copy a file or directory (20 pts) • Input the source file/directory as the first argument and
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Task4- Create a script to copy a file or directory (20 pts) • Input the source file/directory as the first argument and
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!