Question: write a bash script to: a. create the following output enter users full name : enter users id : for b do I have to

write a bash script to: a. create the following output enter users full name : enter users id :

for b do I have to creat a separate usr.doc or will the script create ome for me once info is entered in

write a bash script to: a. create the following output enter users

Write a bash script to: a. Create the following output Enter User's Full Name : Enter User's Job Location : [Make sure to enter AA99 pattern job location, eg: BX56, CR91] Enter User's Manager Code : No need to have data validation code in your script. Always enter the exact patterns shown above. Then Run the script, read input and print the result on screen. (Get a screen dump) b. Add more code to the above (a.) script to pipe the output (i.e. user's information) to a file name with the pattern firstname_lastname.usr and save that file in the test_users directory created above. Hints: i.e, if the user full name is John Jacob, a file named John_Jacob.usr must be created and his Full Name, User ID, Job Location and Manager Code must go into that file. Then, if you run the program again, this time you enter Mary Rivera as the full name. Then a file named Mary_Rivera. usr must be created for that user and her Full Name, User ID, Job Location and Manager code must go to Mary_Rivera.usr file. Basically, each user's information goes into that user's own file name. If you enter n users, then n number of files must be created, one per user. As you can see the file name pattern is firstname_lastname.usr. But the actual file names are, as have explained above. [Test with at least 2 users. Then Get a screen dump of the test_users directory]

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!