Results 1 to 2 of 2

Thread: string handling

  1. #1
    Join Date
    Apr 2004
    Posts
    3

    Unanswered: string handling

    haow can i count occurences of s substring in a given string

  2. #2
    Join Date
    Dec 2003
    Posts
    6

    Lightbulb

    Check the following,
    I am assuming that the string which you are checking is there in a file.

    *************************************
    sed 's/pattern/\
    \BUZZWORDXYZ\
    \/g' yourfile | grep -c BUZZWORDXYZ ;

    ************************************
    Hope this will work for you..

    Have Fun,
    Hanuman.

Posting Permissions

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