Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Posts
    46

    Unanswered: x

    xxxxxxxxxxxxxxxxxxxxxxxxx
    Last edited by markjason; 09-23-05 at 13:49. Reason: x

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    Try this:
    Code:
    head -1 infile.txt|awk -F\| '{print NF;}'

    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    Quote Originally Posted by LKBrwn_DBA

    Try this:
    Code:
    head -1 infile.txt|awk -F\| '{print NF;}'

    or
    Code:
    awk -F\| '{print NF;exit}' infile.txt
    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
  •