Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Can you just put the RHS into single quotes? Commented Feb 22, 2014 at 2:05
  • @Ketan - how do you mean? I can't change the text file with the variables. Commented Feb 22, 2014 at 2:15
  • You don't have to change the original text file, run it through sed and put the output in a new file and source it. Commented Feb 22, 2014 at 2:17
  • @Ketan - that sounds like it should work... can you provide an answer with example code? The devil is often in the details, especially with bash. Thank you. Commented Feb 22, 2014 at 2:20