Task4- Create a script to copy a file or directory (20 pts) • Input the source file/directory as the first argument and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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 47 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply