Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a xdebug function trace output that looks like this:

 1130.8156  482236096     -160               -> memory_get_usage()
 1130.8156  482236112      +16               -> X
 1130.8157  482236112       +0                 -> Y
 1130.8157  482236328     +216                 -> Z
 1130.8157  482236200     -128               -> X
 1130.8157  482236280      +80                 -> X
 1130.8157  482236360      +80                   -> X
 1130.8157  482236440      +80                     -> X
 1130.8158  482237488    +1048                     -> X

I want to sort by the third column (-160,-128,0 ...)

sort -n -k3

is not working.

share|improve this question
    
Looks like I have to use the -g option: sort -k3 -g test.txt –  Alex Sep 21 '11 at 7:21

1 Answer 1

up vote 1 down vote accepted

Looks like I have to use the -g option: sort -k3 -g test.txt

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.