title: How to wrap quotes around variable value in bash?
body: <p>I have a variable</p>
  
  <pre><code>test=value.txt
  </code></pre>
  
  <p>I am using test as</p>
  
  <pre><code>$test
  </code></pre>
  
  <p>which gives me </p>
  
  <pre><code>value.txt
  </code></pre>
  
  <p>I want result as</p>
  
  <pre><code>'value.txt'
  </code></pre>
  
  <p>How can I achieve this?</p>
  
  <p><strong>Edit:</strong>
  Above is just an example of the task I am trying to achieve. I can't change variable value. </p>