HI everyone,
I am trying to use the unix sort command to get a list of numbers sorted in ascending order but having trouble in getting it to work.
An example of this issue would be when i am trying to sort the following three
number each on a different line "1" , "2" and "116" the sort command list the
results in the order 1,116,2
i want it to sort it as 1,2,116.
Is there any option in sort command that will help me achieve this?
Thank you very much
I think your reply has solved my issue.
the actual file had a list of Ips that was not getting sorted
by using the -n switch. I had to modify the file to get the
last octet off of the file and use sort -n to get it to work.
Really appreciate your help.