Question: Part 3 (24 points in total, 3 points for each) Assume a file named companyList containing the Fortune 500 companies set up shop in Georgia.



Part 3 (24 points in total, 3 points for each) Assume a file named "companyList" containing the Fortune 500 companies set up shop in Georgia. Write the commands for the following tasks. The Home Depot (Ranked 28): home improvement: Atlanta, GA United Parcel Service (Ranked 48): shipping, Atlanta, GA The Coca-Cola Company (Ranked 62): soft drinks: Atlanta, GA Delta Air Lines, Inc. (Ranked 68): airline; Atlanta, GA Aflac. Incorporated (Ranked 135): insurance. Columbus, GA. The Southern Company (Ranked 162) energy: Atlanta, GA Genuine Parts Company (Ranked 183): replacement parts, Atlanta, GA First Data Corporation (Ranked 249) payment processing, Atlanta, GA WestRock (Ranked 251): corrugated and consumer packaging: Norcross, GA. HD Supply Holdings, Inc. (Ranked 320): industrial distributors. Atlanta, GA Suntrust Banks, Inc. (Ranked 329) banking: Atlanta, GA Mohawk Industries, Inc. (Ranked 338): flooring manufacturer: Calhoun, GA Question 21 (3 points) List the top five companies in Georgia and save the information into file toplist Question 223 points Outout all the companies located at Norcrossing tep Question 22 (3 points) Output all the companies located at Norcross using grep. Question 23 (3 points) Output all the companies located at Norcross or Atlanta. Question 24 (3 points) Output the number of companies located at Atlanta Question 25 (3 points) Remove the ranking information for each company using sed Eg. First line should be changed to The Home Depot: home improvement: Atlanta GA Question 25 (3 points) Remove the ranking information for each company using sed. E.g. First line should be changed to The Home Depot: home improvement: Atlanta, GA Question 26 (3 points) Sort the file by the name of company in descending order, Question 27 (3 points) Sort the file by the city name of location in ascending order. Question 28 (3 points) Open file company List with vi editor and remove the last five lice. 2 commands) Question 28 (3 points) Open file "companyList" with vi editor and remove the last five lines ( 2 commands) Part 3 (24 points in total, 3 points for each) Assume a file named "companyList" containing the Fortune 500 companies set up shop in Georgia. Write the commands for the following tasks. The Home Depot (Ranked 28): home improvement: Atlanta, GA United Parcel Service (Ranked 48): shipping, Atlanta, GA The Coca-Cola Company (Ranked 62): soft drinks: Atlanta, GA Delta Air Lines, Inc. (Ranked 68): airline; Atlanta, GA Aflac. Incorporated (Ranked 135): insurance. Columbus, GA. The Southern Company (Ranked 162) energy: Atlanta, GA Genuine Parts Company (Ranked 183): replacement parts, Atlanta, GA First Data Corporation (Ranked 249) payment processing, Atlanta, GA WestRock (Ranked 251): corrugated and consumer packaging: Norcross, GA. HD Supply Holdings, Inc. (Ranked 320): industrial distributors. Atlanta, GA Suntrust Banks, Inc. (Ranked 329) banking: Atlanta, GA Mohawk Industries, Inc. (Ranked 338): flooring manufacturer: Calhoun, GA Question 21 (3 points) List the top five companies in Georgia and save the information into file toplist Question 223 points Outout all the companies located at Norcrossing tep Question 22 (3 points) Output all the companies located at Norcross using grep. Question 23 (3 points) Output all the companies located at Norcross or Atlanta. Question 24 (3 points) Output the number of companies located at Atlanta Question 25 (3 points) Remove the ranking information for each company using sed Eg. First line should be changed to The Home Depot: home improvement: Atlanta GA Question 25 (3 points) Remove the ranking information for each company using sed. E.g. First line should be changed to The Home Depot: home improvement: Atlanta, GA Question 26 (3 points) Sort the file by the name of company in descending order, Question 27 (3 points) Sort the file by the city name of location in ascending order. Question 28 (3 points) Open file company List with vi editor and remove the last five lice. 2 commands) Question 28 (3 points) Open file "companyList" with vi editor and remove the last five lines ( 2 commands)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
