Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Unanswered: Shell scripting and awk help

    I am trying to extract just the lines which begin with a numeric character from a file that contains:
    123456=10
    234567=10
    345678=7

    PL/SQL procedure successfully completed.

    SQL> exit
    end-of-file

    Thank you in advance for your assistance.

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    sed -ne '/^[0-9]/p' file
    nawk '/^[0-9]/' file
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •