Hi Ron17,
Welcome to TSG!
We are not a homework solving website, but you can learn as you go here.
Cat the input file into a pipe, |, and use the sort command with '|' as the specified separator field, and specify the key field you are sorting upon, e.g.:
$ cat input-file | sort ...
Read the man page for the sort command and play with it until you have solved your problem.
$ man sort
-- Tom
__________________ The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein |