find a word in input file

Discussion in 'Unix' started by Poonamol, Sep 27, 2010.

  1. Poonamol

    Poonamol New Member

    Joined:
    Mar 31, 2010
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I had a input file containing,

    Code:
    abcdefghij;20100903040607;1234567891;GLOBAL;abc123;20100903040607;12345;09;thestdf;def456;20100903040607;67891;04;bnkim;
    I need to search word GLOBAL in my file.
    If it is found then
    do something
    else
    do other thing

    How can i write if loop for this criteria in .ksh file?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice