title: How to pass AWK output into variable?
body: <p>I have a small bash script that greps/awk paragraph by using a keyword.</p>
  
  <p>But after adding in the extra codes : <code>set var = "(......)"</code> it only prints a blank line and not the paragraph.</p>
  
  <p>So I would like to ask if anyone knows how to properly pass the awk output into a variable for outputting?</p>
  
  <p>My codes:</p>
  
  <pre><code>#!/bin/sh
  
  set var = "(awk 'BEGIN{RS=ORS="\n\n";FS=OFS="\n"}/FileHeader/' /root/Desktop
  /logs/Default.log)"
  echo $var;
  </code></pre>
  
  <p>Thanks!</p>