|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sorting a file to output differently
I have this file that once someone runs it the names and addresses need to be displayed alphabetically. Do not list duplicates. Include a formatted heading.
file looks like this GroupName; Lastname, Firstname ****************************** Porsche; Morse, Aaron but when once the script is run the out put should be Team Member Group Name ======================== Morse, Aaron Porsche |
|
#2
|
|||
|
|||
|
Use the uniq utility to determine the unique names.
Use the sort utility to sort the names alphabetically. Use the awk utility to format the required output. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > sorting a file to output differently |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|