title: How to store sed result in variable in tcsh
body: <p>In tcsh shell, I have :</p>
  
  <pre><code>set tF = downloadedTwitterWorkingFile.txt
  set title = $(sed -n '/&lt;title&gt;/,/&lt;\/title&gt;/p' $tF)
  </code></pre>
  
  <p>which returns this error  :</p>
  
  <pre><code>Illegal variable name.
  </code></pre>
  
  <p>How do I put the result of the sed search into a variable?</p>
  
  <p>The working solution is  </p>
  
  <p><code>set tF=downloadedTwitterWorkingFile.txt
  </code>
  <code>wget -O $tF -q https://twitter.com/i/streams/stream/686639666771046414
  </code>
  <code>set title='sed -n '/&lt;title&gt;/,/&lt;\/title&gt;/p;/&lt;\/title&gt;/q' $tF
  </code>
  <code>***with ticks not quotes around full sed statment***</code></p>