title: How check if variable contains substring in c shell?
body: <p>I am trying to check if a variable contains a specific substring. The test value is <code>&quot;test_tpTest171_ess&quot;</code></p>
  <pre><code> if ($test =~ &quot;Test171&quot;) then
      echo &quot;statement is working&quot;
  </code></pre>
  <p>Also tried:</p>
  <pre><code> $test == &quot;*Test171*&quot;
   $test == *Test171*
  </code></pre>