13) Use sort to print out the sorted lines in alphabetical order according to the company name in CompanyList.txt .
14) When a pattern groups all or part of its content into a pair of parentheses, it captures that content and stores it temporarily in memory. You can reuse that content if you wish by using a back-reference, in the form:\1 or $1, where \1 or $1 reference the first captured group (Refer to [1]). For example, the following command reverse "Atlanta" and "GA".
sed -E 's/(Atlanta),\s(GA)/\2, \1/g' CompanyList.txt
Attach a screenshot of the output of the above sed command.
Lab4] $ cat newlist.txt 1. The Home Depot 2.United Parcel Service 3. The Coca-Cola Company 4.Delta Air Lines, Inc. 5.Aflac, Incorporated 6. The Southern Company 7. Genuine Parts Company 18.First Data Corporation 9.WestRock 10.HD Supply Holdings, Inc. 11. Suntrust Banks, Inc. 12.Mohawk Industries, Inc. [jbeugre1@gsuad.gsu.edu@snowball Lab4] $ 1.The Home Depot (Ranked 28): home improvement; Atlanta, GA. 2.United Parcel Service (Ranked 48): shipping; Atlanta, GA. 3.The Coca-Cola Company (Ranked 62): soft drinks; Atlanta, GA. 4.Delta Air Lines, Inc. (Ranked 68): airline; Atlanta, GA. 5.Aflac, Incorporated (Ranked 135): insurance; Columbus, GA. 6. The Southern Company (Ranked 162): energy; Atlanta, GA. 7.Genuine Parts Company (Ranked 183): replacement parts; Atlanta, GA. 8.First Data Corporation (Ranked 249): payment processing; Atlanta, GA. 9.West Rock (Ranked 251): corrugated and consumer packaging; Norcross, GA. 10.HD Supply Holdings, Inc. (Ranked 320): industrial distributors; Atlanta, GA. 11.Suntrust Banks, Inc. (Ranked 329): banking; Atlanta, GA. 12.Mohawk Industries, Inc. (Ranked 338): flooring manufacturer; Calhoun, GA. Lab4] $ cat newlist.txt 1. The Home Depot 2.United Parcel Service 3. The Coca-Cola Company 4.Delta Air Lines, Inc. 5.Aflac, Incorporated 6. The Southern Company 7. Genuine Parts Company 18.First Data Corporation 9.WestRock 10.HD Supply Holdings, Inc. 11. Suntrust Banks, Inc. 12.Mohawk Industries, Inc. [jbeugre1@gsuad.gsu.edu@snowball Lab4] $ 1.The Home Depot (Ranked 28): home improvement; Atlanta, GA. 2.United Parcel Service (Ranked 48): shipping; Atlanta, GA. 3.The Coca-Cola Company (Ranked 62): soft drinks; Atlanta, GA. 4.Delta Air Lines, Inc. (Ranked 68): airline; Atlanta, GA. 5.Aflac, Incorporated (Ranked 135): insurance; Columbus, GA. 6. The Southern Company (Ranked 162): energy; Atlanta, GA. 7.Genuine Parts Company (Ranked 183): replacement parts; Atlanta, GA. 8.First Data Corporation (Ranked 249): payment processing; Atlanta, GA. 9.West Rock (Ranked 251): corrugated and consumer packaging; Norcross, GA. 10.HD Supply Holdings, Inc. (Ranked 320): industrial distributors; Atlanta, GA. 11.Suntrust Banks, Inc. (Ranked 329): banking; Atlanta, GA. 12.Mohawk Industries, Inc. (Ranked 338): flooring manufacturer; Calhoun, GA