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
-
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...
-
(a) What minimum force F is needed to lift the piano (mass M) using the pulley apparatus shown in Fig. 4-60? (b) Determine the tension in each section of rope: FT1, FT2, FT3 and FT4. Fr3 F72FTI FT4
-
Mensa is an organization that allows people to join only if their IQs are in the top 2% of the population. a. What is the lowest Stanford-Binet IQ you could have and still be eligible to join Mensa?...
-
The type of model building used by Pauling and by Watson and Crick involved the use of ball-and-stick units. Model building can now be done with computer software. Even though you may not be familiar...
-
1. Consider Figure Between points c and d, the opportunity cost of ___ tons of wheat is _______ tons of steel. 2. Arrow up or down: An increase in the wage for high-school graduates ______ the...
-
Delph Company uses a job-order costing system and has two manufacturing departments-Molding and Fabrication. The company provided the following estimates at the beginning of the year: Machine-hours...
-
Sullivan Ranch Corporation has purchased a new tractor. The following information is given: $150,000 $10,000 Cost: Estimated Residual: Estimated Life in years: Estimated Life in hours: Actual Hours:...
-
A couple decides to switch from monthly.To accelerated weekly payments on their 20-year $250,000 5% fixed-rate mortgage. How much total interest would they save?
-
Find lim x-16 x-4x+4x
-
Gary is creating an index that helps compare the salaries of two jobs that he is considering. In the table below, what is the 2017 value for the Salary Index of Job 2? Base Salaries (2015-2017) 2015...
-
How do the woods act as an obstacle to keeping promises in Stopping by Woods on a Snowy Evening ?
-
"Could you elucidate the concept of Socialist Realism as it pertains to literature?"
-
The Woods Co. and the Speith Co. have both announced IPOs at $55 per share. One of these is undervalued by $16, and the other is overvalued by $5, but you have no way of knowing which is which. You...
-
Page 77, P31. In moden packet - switched networks, including the Internet, the source host segments long, application - layer messages ( for example, an image or a music file) into smaller packets...
-
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?
-
Show that the vector potentials given in Eq. (27.1) imply the magnetic fields given in Eq. (27.2) by evaluating \(\boldsymbol{B}=\boldsymbol{abla} \times \boldsymbol{A}\) in the cylindrical...
-
Prove the result of Eq. (26.10) that a path-dependent representation of a gauge group is sensitive to a gauge transformation only at the endpoints of the path.
-
Use Stokes' theorem [Eq. (27.5)] to prove that Eq. (27.4) leads to Eq. (27.6). Data from Eq. 27.4 Data from Eq. 27.5 Data from Eq. 27.6 = z ) ); A dr. - SA dr) = f A dr.
Study smarter with the SolutionInn App