title: Search data from file1 in file2 and replace with column 2 data from file1
body: <p>I have two files
  File 1</p>
  <pre><code>Create -l Ap -ne BP_v BP_v -cir {1 2 3 4}
  Create -l Ap -ne BP_p BP_p -cir {1 2 3 4}
  </code></pre>
  <p>File 2</p>
  <pre><code>BP_v net1
  BP_p net2
  </code></pre>
  <p>I want to search column 1 data of file1 in file2 and if found I want to replace that with column 2 data in file2.</p>
  <p>output as</p>
  <pre><code>Create -l Ap -ne net1 net1 -cir {1 2 3 4}
  Create -l Ap -ne net2 net2 -cir {1 2 3 4}
  </code></pre>
  <p>Anybody please help. I tried awk but not clear.
  I tried the code</p>
  <pre><code>awk 'NR==FNR{a[NR]=$1;b[NR]=$2;next}{$5=b[FNR];$6=b[FNR]}1' File 2 File 1
  </code></pre>
  <p>But its replacing line by line</p>