#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    23
    Rep Power
    0

    To search null and char in file


    Hi guys,

    I want to know how i can search null value and character value in a feed file.
    my file has Pipe delimted records.
    for eg:
    1|12|xxx|yyy
    .
    .
    .
    N records

    I know the the which column null and char occurs does it has for eg 3rd column which i can obtain by awk $3 and
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,485
    Rep Power
    1752
    In awk the null string is represented by '' (that is two apostrophes, with no intervening character). Beyond that I have no idea what you mean or need!
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    859
    Rep Power
    388

    Cool


    Originally Posted by vasanth_amrita
    Hi guys,

    I want to know how . . . E t c . . .

    I know the the which column null and char occurs does it has for eg 3rd column which i can obtain by awk $3 and
    If you know how to do it with awk, then you should use awk to do it.

IMN logo majestic logo threadwatch logo seochat tools logo