title: for each line of a file, grep a specific string and make string substitution
body: <p>I have a file containing more than 14000 records.
  What I want to do is to process this file line by line and replace a String by anodher string returned by grep command.
  For example:
  Line :</p>
  
  <pre><code>/xxxxx/xxxxx/Class.java:67: Logger.w(TAG, "message");
  </code></pre>
  
  <p>My grep command to get <strong>Class.java</strong> string is (Class.java is juste an example):</p>
  
  <pre><code>grep -o '[a-zA-Z]*"*\.java"*'
  </code></pre>
  
  <p>I must, for each line, replace the <strong>TAG</strong> string by the <strong>class.java</strong> string return by grep command</p>