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
rlburrisAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
fim32Connect With a Mentor Commented:
sort -n -t , -k 5

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

sort input.name -n -t, -k 5 -o output.name
0
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.