I am trying to sort a file called "Team_James" numerically by the last column, and then I would like to save the output as a new file called "file3".
I tried the command sort Team_James | > s3
, but I don't know how to do it, and I don't even know what -k
is!
I have been looking everywhere on the Internet.
What am I doing wrong?
Here what the output of my command cat Team_James
Pam Murray 4 657-4324 18
Jim Brown 8 467-8743 22
Jim Roberts 17 728-8295 9
Joyce Murray 7 235-1432 13
sort -k 4,4n Team_James >file3