Need help with "sort" command

What would be the sort command if I wanted to sort the file by the last field (the fifth field)?

File sample:

,040606,20040401,            ,123456789,362 |
                                                     This field
Who is Participating?
sort -n -t , -k 5

the -n is for numerically
rlburrisAuthor Commented:
Thanks... the command was:

sort -n -t, -k 5 -o
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.