> -----Original Message-----
> Need a trick to sort ip addresses into numerical order.

Something a little different (not tested, so might need a little
adjustment).

---------- go.ksh -------------
#!/usr/bin/ksh

{
sqlplus -s <<-XXX
        /user/password
        set feedback off heading off trimspool on
        set pages 0
        select ip_address from the_table;
} | /usr/bin/sort -nt . +1 +2 +3 +4
--------------------------------

You ... ummm ... didn't NEED this to be entirely within a database session
did you?
And the sort options use the letters "nt".  I hope that is OK.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephen Lee
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to