title: how to execute sed or awk commands in tcl without errors
body: <p>i wanted to print lines between two matches using sed or awk in tcl.
  since sed is fastest way to do the job, i am tring to use sed in tcl. temp is the input file.</p>
  <pre><code>temp file:
  Hello
  1
  2
  3
  work
  4 5
  6
  7
  
  </code></pre>
  <pre><code>sed -n '/Hello/,/work /p' temp
  awk 's/Hello/,/work /' temp
  </code></pre>
  <p>this is working in shell, now i want to use this in tcl file,</p>
  <pre><code>tclsh exec sed -n {/Hello/,/work/p} temp
  tclsh exec awk {/Hello/,/work/} temp
  </code></pre>
  <p>it is giving error as:</p>
  <pre><code>Missing }.
  </code></pre>
  <p>excepted output:</p>
  <pre><code>Hello
  1
  2
  3
  work
  </code></pre>
  <p>what am i missing here ?</p>