Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

number sorting problem 2

Status
Not open for further replies.

w5000

Technical User
Nov 24, 2010
223
PL
how to sort output as below by last octet number of IPs in the second column?


Code:
10.116.27.63 10.116.27.63 is alive
10.116.27.7 10.116.27.7 is alive
10.116.27.8 10.116.27.8 is alive
10.116.27.9 10.116.27.9 is alive
 
With legacy sort:
Code:
sort -t. -k7n /path/to/input

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top