in reply to Re: need help in editing multiple word in a file
in thread need help in editing multiple word in a file

consider this example: lion is brave animal. cat is brave animal. dog is brave animal. in this i want to change brave by frightened only for cat. so i need to match cat and replace brave with frightened. So match file is like: cat frightened . Thanks.

  • Comment on Re^2: need help in editing multiple word in a file

Replies are listed 'Best First'.
Re^3: need help in editing multiple word in a file
by Not_a_Number (Prior) on Nov 19, 2012 at 19:10 UTC

    Ok, so how do you propose deciding which word in the string:

    cat is brave animal

    should be replaced by 'frightened'?

    In other words, is this also acceptable:

    cat frightened brave animal

    ?

    Update: de-gobbledegooked, I hope...