Question: Create a shell script file in Unix/Linux to generate the username and initial password for a list of students from registrars office. Your script file

Create a shell script file in Unix/Linux to generate the username and initial password for a list of students from registrars office. Your script file will process the student list file as input, and generates the output to be used by newusers command.

Specifications

The script file needs to meet the following requirements:

  1. The input file name is accepted as a command line argument;
  2. The user name is the same as his/her email account in the first column in the input file, except that it needs to be in lowercase;
  3. The initial password is SRUR0cks! (no quotes) for all the users;
  4. Your script file shows the output on the screen;
  5. The output contains one line for each user. The format of each line is username:SRUR0cks

Contents of List File:

Create a shell script file in Unix/Linux to generate the username and

list1.txt - Notepad File Edit Format View Help OFFICIAL CLASS LIST 1ST SEMESTER 2010-11 REGISTRAR'S OFFICE 01/07/11 PAGE 336 INSTRUCTOR.. SMITH, JOHN PLACE.. ATS 130 PRODUCT SOFTWARE CPSC 14 210 02 TIME. 3 MWF 3 SEM HRS john.smith@sru.edu 4 STUDENTS ENROLLED IN THIS SECTION. O DROPPED COURSES 4 NOW ENROLLED E-mail@ Soc.Sec.No. *--------Name-----------* Class *School.Curriculum.Major.Campus. Phone CLC3836 XXX-XX-XXXX CRAMER, CHARLES L SR-II BISS BS COMM ET &MM 724/843-7195 CPF0995 XXX-XX-XXXX FOUST, CASSANDRA P FR-I BISS PROF BS HEAL SER AD 724/406-1479 AXL5499 XXX-XX-XXXX LISCHNER, ALLISON SO-I BISS SBUS BSBA MANAGEMENT 724/406-6835 ALP2884 XXX-XX-XXXX PRITCHARD, AMANDA L. SO-I BISS SBUS BSBA MANAGEMENT 412/854-5746 list1.txt - Notepad File Edit Format View Help OFFICIAL CLASS LIST 1ST SEMESTER 2010-11 REGISTRAR'S OFFICE 01/07/11 PAGE 336 INSTRUCTOR.. SMITH, JOHN PLACE.. ATS 130 PRODUCT SOFTWARE CPSC 14 210 02 TIME. 3 MWF 3 SEM HRS john.smith@sru.edu 4 STUDENTS ENROLLED IN THIS SECTION. O DROPPED COURSES 4 NOW ENROLLED E-mail@ Soc.Sec.No. *--------Name-----------* Class *School.Curriculum.Major.Campus. Phone CLC3836 XXX-XX-XXXX CRAMER, CHARLES L SR-II BISS BS COMM ET &MM 724/843-7195 CPF0995 XXX-XX-XXXX FOUST, CASSANDRA P FR-I BISS PROF BS HEAL SER AD 724/406-1479 AXL5499 XXX-XX-XXXX LISCHNER, ALLISON SO-I BISS SBUS BSBA MANAGEMENT 724/406-6835 ALP2884 XXX-XX-XXXX PRITCHARD, AMANDA L. SO-I BISS SBUS BSBA MANAGEMENT 412/854-5746

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!