title: How to search for a pattern having the special characters in awk
body: <p>I have to match file1 with file2 line by line . But file1 is in below format .If am using ak command to search with the below line in file2 , its throwing error with syntax error at '=' .</p>
  
  <p>File1 :</p>
  
  <pre><code>Country_code=US/base_div_nbr=18/retail_channel_code=1/visit_date=2010-01-02/load_time_stamp=20100102058100
  Country_code=US/base_div_nbr=18/retail_channel_code=1/visit_date=2010-01-02/load_time_stamp=20100102091000
  Country_code=US/base_div_nbr=18/retail_channel_code=1/visit_date=2010-01-02/load_time_stamp=20100102067000
  </code></pre>
  
  <p>File2: </p>
  
  <pre><code>Country_code=US/base_div_nbr=18/retail_channel_code=1/visit_date=2010-01-02/load_time_stamp=20100102058100
  Country_code=US/base_div_nbr=18/retail_channel_code=1/visit_date=2010-01-02/load_time_stamp=20100102091000
  </code></pre>
  
  <p>I took total line from file1 as the search pattern to search in file2 using below command:</p>
  
  <pre><code>awk "/$line/ {print ;}" file2
  </code></pre>
  
  <p>Here file1 , 3 rd record not found in file2 , So I need to know these differences</p>
  
  <p>I am very much new to shell scripting, So please suggest me on this.</p>