Write a script that process: input to the script o options: -c or option -d (only one option at a time) o argument to th

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

Write a script that process: input to the script o options: -c or option -d (only one option at a time) o argument to th

Post by answerhappygod »

Write A Script That Process Input To The Script O Options C Or Option D Only One Option At A Time O Argument To Th 1
Write A Script That Process Input To The Script O Options C Or Option D Only One Option At A Time O Argument To Th 1 (90.43 KiB) Viewed 57 times
Write a script that process: input to the script o options: -c or option -d (only one option at a time) o argument to the option -c or -d (i.e., op_c_argument and op_c_argument, respectively) with the file name containing names and ID numbers of students (e.g., student_roster.csv) outcome of the script o if there is no option indicated when the script is invoked list all user accounts on the computer that runs the script o if option-c creates user account and home directory for each student from the filename that was provided as the argument to option-c • The accounts and directories should be created on the system on which the script is running and their name should be created as described below The default password should be set as described below o if option -d is used . delete user account and home directory for each student from the filename that was provided as an argument to the option -d The accounts and directories should be created on the system on which the script is running and their name should be created as described below An example of csv file (commas-separated values file) with a list of students for whom the accounts need to be created/deleted Name of the file (e.g., student_roster.csv) is given to the script as an argument to option -c or -d Each record/line of the file includes name of a student and his/her corresponding ID numbers in a following format: first_name, last_name, student_ID – Example of a file content and format: John Doe, 12345678 Oswaldo, Raborn,23456789 Lesia, Gillan,34567891 Sammy,Bisram,45678912 Kelvin,Escudero,56789123 Cecile,Espinal,67891234 Boris, Ghamandi, 78912345 Evia, Zelma,89123456
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply