Write a Script 5.sh that will use a while loop to read the contents of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Script 5.sh that will use a while loop to read the contents of a file active_cs.txt and process as follows: ( Do not alter the logic... I am intentionally requiring the nested if-else statement. Username:Full Name:StudentIDNum: Advisor Name If the username in first field of the input record does not exist in /home/STUDENTS/majors if the username exists in /home/STUDENTS/nonmajors ▪ display message "CS MAJOR fullname is in nonmajor" o otherwise ▪ display message "NO ACCOUNT FOUND - (idnum) fullname" Write a Script 5.sh that will use a while loop to read the contents of a file active_cs.txt and process as follows: ( Do not alter the logic... I am intentionally requiring the nested if-else statement. Username:Full Name:StudentIDNum: Advisor Name If the username in first field of the input record does not exist in /home/STUDENTS/majors if the username exists in /home/STUDENTS/nonmajors ▪ display message "CS MAJOR fullname is in nonmajor" o otherwise ▪ display message "NO ACCOUNT FOUND - (idnum) fullname"
Expert Answer:
Answer rating: 100% (QA)
To solve this problem we need to write a bash script called Script5sh that will use a while loop to read the contents of a file called activecstxt and process it according to the given logic The follo... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these operating system questions
-
Find an s-grammar for L = { a n b n : n > 1} a) Create a PDA for the above language, based on the abovegrammar. b) Is it deterministic or non-deterministic? Explain.
-
Use the following structure for problem 1. struct student{ string name; int id; float mark; }; Declare an array named studentArray of the structure type shown above, the size of the array is limited...
-
Use C++ language to develop an original implementation of a menu-driven program performing a number of tasks relating to students? details: displaying all students? details, adding new student to the...
-
On July 7, Splish Ltd. purchased 1,100 common shares in a privately-owned company named TWR Ltd. As the TWR shares were not traded on any stock exchange, Splish elected to account for the investment...
-
The IT unit of a company has been asked to prepare a budget for a special software package project. The group has considerable experience with similar tasks and submits the costs in the following...
-
Upon receipt of a requisition, the stores manager initiates a three-part purchase order. Two copies go to the vendor and one copy stays in the stores file. Upon receipt of goods, the stores manager...
-
Joe Dunham Inc. is preparing its annual budgets for the year ending December 31, 2003. Accounting assistants furnish the following data. An accounting assistant has prepared the detailed...
-
The SS Minnow is lost at sea in a deep fog. Moving on a bearing of 107°, the skipper sees a light at a bearing of 60°. The same light reappears through the fog after the skipper has sailed...
-
Find the maximum value of the function z=2x+3y subject to the following constraints. y0 x5 y4 2x+y22 z=0
-
Neighborhood Supermarkets is preparing to go public, and you are asked to assist the firm by preparing its statement of cash flows for 20X1. Neighborhoods balance sheets at December 31, 20X0, and...
-
A retail investor has collected data on different characteristics for three asset classes, namely the New York Stock Exchange (NYSE) index, gold (GOLD) and crude oil (WTI) spot prices, as illustrated...
-
3. What are the potential pitfalls for the underwriter of all the information made available by technology
-
(30) Nelson Corporation sells three different products. The following information is available on December 31: Inventory Item Units X Y Z Cost per unit Net realizable value per unit 300 $4.00 $3.00...
-
what is the fair price of te futures contract based on the s&p500 which expires in 3 months time
-
You're feeling particularly lazy and decide to open a door by firing a bullet at it. The door has a mass of 14.5 kg and is 0.950 m wide, and the 10 g bullet, traveling at 470. m/s, hits the door at...
-
John Lemon, a fund manager currently holds $100 million par value of Treasury note T-A. He is worried that the interest rate might increase in the near future thus thinking of hedging his position...
-
De las diferentes tcnicas que ayuden en la toma de decisiones dame tres opiniones de cul es la mejor, justificando su respuesta. Tres opiniones del caso de toma de decisiones, Caso Prctico Para ...
-
The manager of a local convenience store is expanding his line of small toy items. To price these new items, the manager is looking at the prices being charged by competing retailers in his area. For...
-
What are nominal scales used for?
-
What common error is missed by the Luhn formula?
-
What are the criteria for deciding whether a system should be prototyped?
-
October 20X1, Little Raven plc issued 50,000 debentures, with a par value of 100 each, to investors at 80 each.The debentures are redeemable at par on 30 September 20X6 and have a coupon rate of 6%,...
-
On 1 October year 1, RPS plc issued one million 1 5% redeemable preference shares. The shares were issued at a discount of 50,000 and are due to be redeemed on 30 September Year 5. Dividends are paid...
-
(a) Who are considered to be the potential users of financial reports? (b) What do you consider to be their information needs? (c) How would you expect a consideration of user needs to influence...
Study smarter with the SolutionInn App