title: I want to search a word from a file and replace it with another value in file
body: <p>I want to search a word from a file than on behalf of that search i want to replace a word in that file.
  Below is the content in the file on which search and replacement has to done(this is .csv file) Let the file name be test.csv-:</p>
  
  <pre><code>A,B,C,D,E
  unix,123,crap,as,d
  dpk,123,crap,as,d
  shy,123,crap,as,d
  ghn,123,crap,as,d
  unnix,123,crap,as,d
  </code></pre>
  
  <p>Below is the command I am using -:</p>
  
  <pre><code>grep -rl 'unix' test.csv | xargs sed -i 's/crap/linux/1'
  </code></pre>
  
  <p>Output of this command -:</p>
  
  <pre><code>A,B,C,D,E
  unix,123,linux,as,d
  dpk,123,linux,as,d
  shy,123,linux,as,d
  ghn,123,linux,as,d
  unnix,123,linux,as,d
  </code></pre>
  
  <p>But i want that sed should replace the word crap from the row which contains unix not from whole file . Please help in this regards. 
  Or i s there any other way to do this.
  Output I desired-:</p>
  
  <pre><code>A,B,C,D,E
  unix,123,linux,as,d
  dpk,123,crap,as,d
  shy,123,crap,as,d
  ghn,123,crap,as,d
  unnix,123,crap,as,d
  </code></pre>