Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Now cd to your work directory you created in assignment #1. Write a bash script to: a. Create the following output Enter User's Full

image text in transcribed

2. Now cd to your work directory you created in assignment \#1. Write a bash script to: a. Create the following output Enter User's Full Name : [Note: B means a blank space] Enter User's ID : [Ener any 6 digit number] Enter User's Job Location : [Make sure to enter AA99 pattern job location, eg: BX56, CR91] EnterUsersManagerCode:[Enerany6digitnumber] 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's full name is John Jacob, a file named John_Jacob.usr must be created a 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.u must be created for that user and her Full Name, User ID, Job Location and Manager code must go 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. See class note pages 34,37 and Bash Practice Questions 02 question 4 for hints]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

What is a protocol?

Answered: 1 week ago

Question

Challenges Facing Todays Organizations?

Answered: 1 week ago