Purpose: shell programming E.g., filename: part.text Brasstown Bald ,(summit),4784,feet,Union County Rabun Bald, (summit),4696,feet,Rabun County Dick's Knob, (summit),4620,feet,Rabun County Hightower Bald, (summit),4568,feet,Towns County Wolfpen Ridge, (ridge high point),4561,feet,Towns and Union Counties Blood Mountain, (summit),4458,feet,Union County Grassy Ridge, (ridge high point),4420,feet,Rabun County Slaughter Mountain, (summit),4338,feet,Union County Double Spring Knob, (summit),4280,feet,Rabun County Coosa Bald, (summit),4280,feet,Union County b) Sort the file by the name of the county in ascending/descendingorder
Given a text file, then finish some shell
Purpose: shell programming
E.g., filename: part.text
Brasstown Bald ,(summit),4784,feet,Union County
Rabun Bald, (summit),4696,feet,Rabun County
Dick's Knob, (summit),4620,feet,Rabun County
Hightower Bald, (summit),4568,feet,Towns County
Wolfpen Ridge, (ridge high point),4561,feet,Towns and Union Counties
Blood Mountain, (summit),4458,feet,Union County
Grassy Ridge, (ridge high point),4420,feet,Rabun County
Slaughter Mountain, (summit),4338,feet,Union County
Double Spring Knob, (summit),4280,feet,Rabun County
Coosa Bald, (summit),4280,feet,Union County
- b) Sort the file by the name of the county in ascending/descendingorder
Sort command in shell programming: SORT command is used to sort a file, arranging the records in a particular order.SORT command sorts the contents of a text file, line by line.
Step by step
Solved in 2 steps