• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting IP addresses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting IP addresses


  • Subject: Re: Sorting IP addresses
  • From: Bill <email@hidden>
  • Date: Sun, 21 Dec 2003 22:22:48 +0800

I changed it around a bit and this seems to work fine also:
sort -n -t '.' -k 1,1 -k 2,2 -k 3,3 -k 4,4 unsortedfile -o
sortedfile

Bravo :)

Any brief explanation now? I can't get the meaning of -k from the man page & your example.

TIA


bill

PS: [OT] testing again b0 b7b5b2 b
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Sorting IP addresses
      • From: Graff <email@hidden>
  • Prev by Date: Rename File from Filemaker Pro
  • Next by Date: Re: Rename File from Filemaker Pro
  • Previous by thread: Re: Sorting IP addresses - Progress
  • Next by thread: Re: Sorting IP addresses
  • Index(es):
    • Date
    • Thread