What are the command lines needed for this in C++ on a linux system
5. The problem you need to solve for this lab assignment is: (1) to sort all the buildings from UkY_buildings.txt you downloaded from step 3, in Lexicographical order (dictionary order) by building names. (2) to search from the sorted file in step(1) and find all the buildings, which start with "C" and the coordinates shown in the map are in the range of D5 to D7 (including D5 D6 and D7), and print them (with line numbers from the sorted file to an output file, named Lab2output.txt. (3) to search from the sorted file in step(1) and find all the buildings which contain "ball" as part of the building name (Ignore case distinctions) and the coordinates shown in the map ne either B5 to B7. or G4 or 14, and print (append) them (with line numbers from the sorted file), at the end of the same output file, named Lab2output.txt. The following is the sample output of Laboutput.txt: 85: CRMS Building 0108 D7 89: Center for Robotics and Manufacturing Systems 1on Chem. Physins Rus Shelter 0392 16 0108 D7 5. The problem you need to solve for this lab assignment is: (1) to sort all the buildings from UkY_buildings.txt you downloaded from step 3, in Lexicographical order (dictionary order) by building names. (2) to search from the sorted file in step(1) and find all the buildings, which start with "C" and the coordinates shown in the map are in the range of D5 to D7 (including D5 D6 and D7), and print them (with line numbers from the sorted file to an output file, named Lab2output.txt. (3) to search from the sorted file in step(1) and find all the buildings which contain "ball" as part of the building name (Ignore case distinctions) and the coordinates shown in the map ne either B5 to B7. or G4 or 14, and print (append) them (with line numbers from the sorted file), at the end of the same output file, named Lab2output.txt. The following is the sample output of Laboutput.txt: 85: CRMS Building 0108 D7 89: Center for Robotics and Manufacturing Systems 1on Chem. Physins Rus Shelter 0392 16 0108 D7